diff --git a/plugins/RubyTest.rb b/plugins/RubyTest.rb index bd2dba97..d6389ac7 100644 --- a/plugins/RubyTest.rb +++ b/plugins/RubyTest.rb @@ -1,5 +1,5 @@ module RubyTest def RubyTest.prof_init(version, status) - $stderr.puts "From Ruby: " + version + " " + status + Prof::cons_show("RubyTest: " + version + " " + status) end end diff --git a/src/plugins/ruby_api.c b/src/plugins/ruby_api.c index ba838116..26005fcc 100644 --- a/src/plugins/ruby_api.c +++ b/src/plugins/ruby_api.c @@ -160,7 +160,8 @@ static VALUE prof_module; void ruby_api_init(void) { - prof_module = rb_define_module("prof"); + prof_module = rb_define_module("Prof"); + rb_define_module_function(prof_module, "cons_alert", RUBY_METHOD_FUNC(ruby_api_cons_alert), 0); rb_define_module_function(prof_module, "cons_show", RUBY_METHOD_FUNC(ruby_api_cons_show), 1); rb_define_module_function(prof_module, "register_command", RUBY_METHOD_FUNC(ruby_api_register_command), 7); diff --git a/src/plugins/ruby_plugins.c b/src/plugins/ruby_plugins.c index 19857501..446a068e 100644 --- a/src/plugins/ruby_plugins.c +++ b/src/plugins/ruby_plugins.c @@ -35,7 +35,6 @@ void ruby_env_init(void) { ruby_init(); - ruby_script("prof"); ruby_init_loadpath(); ruby_api_init(); ruby_check_error();