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
adamh-ruby-prof-0.7.3 test/no_method_class_test.rb
skaes-ruby-prof-0.7.3 test/no_method_class_test.rb
ruby-prof-0.8.2 test/no_method_class_test.rb
ruby-prof-0.8.1-x86-mingw32 test/no_method_class_test.rb
ruby-prof-0.8.1-x86-mswin32 test/no_method_class_test.rb
ruby-prof-0.8.1 test/no_method_class_test.rb
ruby-prof-0.7.10 test/no_method_class_test.rb
ruby-prof-0.7.9 test/no_method_class_test.rb
ruby-prof-0.7.8 test/no_method_class_test.rb
ruby-prof-0.7.7 test/no_method_class_test.rb
ruby-prof-0.7.6 test/no_method_class_test.rb
ruby-prof-0.7.5 test/no_method_class_test.rb
ruby-prof-0.7.4 test/no_method_class_test.rb
rdp-ruby-prof-0.7.4 test/no_method_class_test.rb
ruby-prof-0.7.0-x86-mswin32-60 test/no_method_class_test.rb
ruby-prof-0.7.3-x86-mswin32-60 test/no_method_class_test.rb
ruby-prof-0.7.1 test/no_method_class_test.rb
ruby-prof-0.7.3 test/no_method_class_test.rb
ruby-prof-0.7.2-x86-mswin32-60 test/no_method_class_test.rb
ruby-prof-0.7.0 test/no_method_class_test.rb