Measure Mode: wall_time Thread ID: 21652640 Fiber ID: 50637660 Total: 0.360000 Sort by: self_time %self total self wait child calls name location 95.56 0.344 0.344 0.000 0.000 10001 Integer#upto 4.44 0.016 0.016 0.000 0.000 1 Array#each_index 0.00 0.000 0.000 0.000 0.000 1 Array#first 0.00 0.344 0.000 0.000 0.344 10000 Object#is_prime C:/msys64/usr/local/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/ruby-prof-1.0.0-x64-mingw32/test/prime.rb:18 0.00 0.344 0.000 0.000 0.344 1 Array#select 0.00 0.344 0.000 0.000 0.344 1 Object#find_primes C:/msys64/usr/local/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/ruby-prof-1.0.0-x64-mingw32/test/prime.rb:26 0.00 0.000 0.000 0.000 0.000 10000 Kernel#rand 0.00 0.000 0.000 0.000 0.000 1 Object#find_largest C:/msys64/usr/local/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/ruby-prof-1.0.0-x64-mingw32/test/prime.rb:33 0.00 0.000 0.000 0.000 0.000 1 Array#initialize 0.00 0.000 0.000 0.000 0.000 1 Class#new 0.00 0.016 0.000 0.000 0.016 1 Object#make_random_array C:/msys64/usr/local/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/ruby-prof-1.0.0-x64-mingw32/test/prime.rb:9 0.00 0.360 0.000 0.000 0.360 1 Object#run_primes C:/msys64/usr/local/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/ruby-prof-1.0.0-x64-mingw32/test/prime.rb:47 0.00 0.360 0.000 0.000 0.360 1 Object#run C:/msys64/usr/local/src/ruby-prof.github.io/create_examples.rb:27 * recursively called methods Columns are: %self - The percentage of time spent in this method, derived from self_time/total_time. total - The time spent in this method and its children. self - The time spent in this method. wait - The amount of time this method waited for other threads. child - The time spent in this method's children. calls - The number of times this method was called. name - The name of the method. location - The location of the method. The interpretation of method names is: * MyObject#test - An instance method "test" of the class "MyObject" * #test - The <> characters indicate a method on a singleton class.