diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-20 11:05:20 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-20 11:05:20 +0000 |
commit | 1da641a16b6fdccad639ac46cec658436029af16 (patch) | |
tree | 41bd06c917d2e7eb3d056f322092880ff194b397 /LEGAL | |
parent | 553931962a8a6c73ecef770831165070479c8763 (diff) | |
download | ruby-1da641a16b6fdccad639ac46cec658436029af16.tar.gz |
* vm_trace.c: rename and add TracePoint APIs.
(1) TracePoint.new(...){...} creates a new trace point
but does not make it enable.
(2) TracePoint.trace(...){...} creats a new trace point
and enable it (same as old behavior).
(3) TracePoint#enable make it enable (renamed from TracePoint#retrace).
If block given, when enable only in block.
(4) TracePoint#disable make it disable (renamed from TracePoint#untrace).
If block given, when disable only in block.
(5) TracePoint#enabled? returns this trace is enable or not.
* test/ruby/test_settracefunc.rb: addd tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'LEGAL')
0 files changed, 0 insertions, 0 deletions