lib/trace_mod.rb in rb-trace-0.4 vs lib/trace_mod.rb in rb-trace-0.5
- old
+ new
@@ -17,10 +17,13 @@
C_CALL_EVENT_MASK = 0x0020
C_RETURN_EVENT_MASK = 0x0040
RAISE_EVENT_MASK = 0x0080
INSN_EVENT_MASK = 0x0100
BRKPT_EVENT_MASK = 0x0200
+ SEND_EVENT_MASK = 0x0400
+ LEAVE_EVENT_MASK = 0x0800
+ YIELD_EVENT_MASK = 0x1000
ALL_EVENT_MASKS = (0xffff & ~INSN_EVENT_MASK)
VM_EVENT_MASK = 0x10000
SWITCH_EVENT_MASK = 0x20000
COVERAGE_EVENT_MASK = 0x40000
@@ -30,13 +33,16 @@
CALL_EVENT_MASK |
CLASS_EVENT_MASK |
C_CALL_EVENT_MASK |
C_RETURN_EVENT_MASK |
END_EVENT_MASK |
+ LEAVE_EVENT_MASK |
LINE_EVENT_MASK |
RAISE_EVENT_MASK |
- RETURN_EVENT_MASK
+ RETURN_EVENT_MASK |
+ SEND_EVENT_MASK |
+ YIELD_EVENT_MASK
# Symbols we use to represent the individual bits inside a Fixnum bitmask
EVENT2MASK = {
:brkpt => BRKPT_EVENT_MASK,
@@ -45,14 +51,17 @@
:call => CALL_EVENT_MASK,
:class => CLASS_EVENT_MASK,
:coverage => COVERAGE_EVENT_MASK,
:end => END_EVENT_MASK,
:insn => INSN_EVENT_MASK,
+ :leave => LEAVE_EVENT_MASK,
:line => LINE_EVENT_MASK,
:raise => RAISE_EVENT_MASK,
:return => RETURN_EVENT_MASK,
+ :send => SEND_EVENT_MASK,
:switch => SWITCH_EVENT_MASK,
- :vm => VM_EVENT_MASK
+ :vm => VM_EVENT_MASK,
+ :yield => YIELD_EVENT_MASK
}
EVENTS = EVENT2MASK.keys.sort
end