Sha256: 706dbe5ab4ee13639b5b6cf86b439a8748ca7d86c16c4af03a3c0402c461888b
Contents?: true
Size: 402 Bytes
Versions: 22
Compression:
Stored size: 402 Bytes
Contents
#!/usr/bin/env ruby require 'ruby-prof' # 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
22 entries across 22 versions & 4 rubygems
Version | Path |
---|---|
ruby-prof-0.7.1-x86-mswin32-60 | test/no_method_class_test.rb |
ruby-prof-0.7.2 | test/no_method_class_test.rb |