Sha256: ed0ae28e1b778a99ee48ecc01968cf9c3140e16ee2b0e534bc7667b802149b4f
Contents?: true
Size: 441 Bytes
Versions: 1
Compression:
Stored size: 441 Bytes
Contents
#!/usr/bin/env ruby require 'ruby-prof' RubyProf.call_tree_profile_on = false # Make sure this works with no class or method result = RubyProf.profile do sleep 1 end methods = result.threads.values.first global_method = methods.sort_by {|method| method.full_name}.first if global_method.full_name != 'Global#[No method]' raise(RuntimeError, "Wrong method name. Expected: Global#[No method]. Actual: #{global_method.full_name}") end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-prof-danielhoey-0.8.1 | test/no_method_class_test.rb |