From 3af5298e8cc9d88fb0c763fb623b722a97912877 Mon Sep 17 00:00:00 2001 From: ko1 Date: Fri, 21 Aug 2015 09:51:01 +0000 Subject: * include/ruby/ruby.h, cont.c, vm_trace.c: add a new event fiber_switch. We need more discussion about this feature so that I don't write it on NEWS. [Feature #11348] * test/ruby/test_settracefunc.rb: add tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/ruby.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index f0d53b3e11..515a27aa0b 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -1825,6 +1825,7 @@ int ruby_native_thread_p(void); #define RUBY_EVENT_B_RETURN 0x0200 #define RUBY_EVENT_THREAD_BEGIN 0x0400 #define RUBY_EVENT_THREAD_END 0x0800 +#define RUBY_EVENT_FIBER_SWITCH 0x1000 #define RUBY_EVENT_TRACEPOINT_ALL 0xffff /* special events */ -- cgit v1.2.3