Measure Mode: wall_time Thread ID: 21652640 Fiber ID: 50637660 Total Time: 0.35999999998603016 Sort by: total_time %total %self total self wait child calls name location ------------------------------------------------------------------------------------------------------------------------------------------------------ 0.360 0.000 0.000 0.360 1/1 Object#run 100.00% 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.344 0.000 0.000 0.344 1/1 Object#find_primes 0.016 0.000 0.000 0.016 1/1 Object#make_random_array 0.000 0.000 0.000 0.000 1/1 Object#find_largest ------------------------------------------------------------------------------------------------------------------------------------------------------ 100.00% 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 0.360 0.000 0.000 0.360 1/1 Object#run_primes ------------------------------------------------------------------------------------------------------------------------------------------------------ 0.344 0.000 0.000 0.344 1/1 Object#run_primes 95.56% 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.344 0.000 0.000 0.344 1/1 Array#select ------------------------------------------------------------------------------------------------------------------------------------------------------ 0.000 0.000 0.000 0.000 1/10001 Object#find_largest 0.344 0.344 0.000 0.000 10000/10001 Object#is_prime 95.56% 95.56% 0.344 0.344 0.000 0.000 10001 Integer#upto ------------------------------------------------------------------------------------------------------------------------------------------------------ 0.344 0.000 0.000 0.344 10000/10000 Array#select 95.56% 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.344 0.344 0.000 0.000 10000/10001 Integer#upto ------------------------------------------------------------------------------------------------------------------------------------------------------ 0.344 0.000 0.000 0.344 1/1 Object#find_primes 95.56% 0.00% 0.344 0.000 0.000 0.344 1 Array#select 0.344 0.000 0.000 0.344 10000/10000 Object#is_prime ------------------------------------------------------------------------------------------------------------------------------------------------------ 0.016 0.016 0.000 0.000 1/1 Object#make_random_array 4.44% 4.44% 0.016 0.016 0.000 0.000 1 Array#each_index 0.000 0.000 0.000 0.000 10000/10000 Kernel#rand ------------------------------------------------------------------------------------------------------------------------------------------------------ 0.016 0.000 0.000 0.016 1/1 Object#run_primes 4.44% 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.016 0.016 0.000 0.000 1/1 Array#each_index 0.000 0.000 0.000 0.000 1/1 Class#new ------------------------------------------------------------------------------------------------------------------------------------------------------ 0.000 0.000 0.000 0.000 1/1 Class#new 0.00% 0.00% 0.000 0.000 0.000 0.000 1 Array#initialize ------------------------------------------------------------------------------------------------------------------------------------------------------ 0.000 0.000 0.000 0.000 1/1 Object#make_random_array 0.00% 0.00% 0.000 0.000 0.000 0.000 1 Class#new 0.000 0.000 0.000 0.000 1/1 Array#initialize ------------------------------------------------------------------------------------------------------------------------------------------------------ 0.000 0.000 0.000 0.000 1/1 Object#find_largest 0.00% 0.00% 0.000 0.000 0.000 0.000 1 Array#first ------------------------------------------------------------------------------------------------------------------------------------------------------ 0.000 0.000 0.000 0.000 1/1 Object#run_primes 0.00% 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.000 0.000 0.000 0.000 1/1 Array#first 0.000 0.000 0.000 0.000 1/10001 Integer#upto ------------------------------------------------------------------------------------------------------------------------------------------------------ 0.000 0.000 0.000 0.000 10000/10000 Array#each_index 0.00% 0.00% 0.000 0.000 0.000 0.000 10000 Kernel#rand * 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.