lib/rubysl/profiler/profiler.rb in rubysl-profiler-2.0.1 vs lib/rubysl/profiler/profiler.rb in rubysl-profiler-2.1

- old
+ new

@@ -1,23 +1,25 @@ require 'rubinius/profiler' module Profiler__ def start_profile - @p = Rubinius::Profiler::Instrumenter.new - @p.start + warn_not_implemented end def stop_profile - @p.stop + warn_not_implemented end def options(opts) - @p.set_options opts + warn_not_implemented end def print_profile(f) - stop_profile - @p.show(f) + warn_not_implemented end - module_function :start_profile, :stop_profile, :print_profile, :options + def warn_not_implemented + warn "Profiler__ is not implemented" + end + + module_function :start_profile, :stop_profile, :print_profile, :warn_not_implemented end