webmcp
diff framework/env/trace/restore_slots.lua @ 41:0bbfee4d4aed
New functions trace.disable() and trace.is_disabled()
| author | jbe |
|---|---|
| date | Sat Oct 16 17:51:18 2010 +0200 (2010-10-16) |
| parents | 9fdfb27f8e67 |
| children |
line diff
1.1 --- a/framework/env/trace/restore_slots.lua Sat Oct 16 17:49:11 2010 +0200 1.2 +++ b/framework/env/trace/restore_slots.lua Sat Oct 16 17:51:18 2010 +0200 1.3 @@ -7,5 +7,7 @@ 1.4 --]]-- 1.5 1.6 function trace.restore_slots(args) 1.7 - trace._new_entry{ type = "restore_slots" } 1.8 + if not trace._disabled then 1.9 + trace._new_entry{ type = "restore_slots" } 1.10 + end 1.11 end