Skip to content

Instantly share code, notes, and snippets.

@6ewis
Created January 20, 2014 08:44
Show Gist options
  • Save 6ewis/75a4cdd3d4d0f1814afe to your computer and use it in GitHub Desktop.
Save 6ewis/75a4cdd3d4d0f1814afe to your computer and use it in GitHub Desktop.
Number of meter readings | Number of customers
^CThread ID: 70107103889100
Fiber ID: 70107105885140
Total Time: 1994.48983
Sort by: total_time
%total %self total self wait child calls Name
--------------------------------------------------------------------------------
100.00% 0.00% 1994.490 0.000 0.000 1994.490 1 Global#[No method]
1994.490 0.000 0.000 1994.490 1/1 Reporting#show_nbr_of_meters_readings_per_number_of_customers_with_that_many_readings
--------------------------------------------------------------------------------
1994.490 0.000 0.000 1994.490 1/1 Global#[No method]
100.00% 0.00% 1994.490 0.000 0.000 1994.490 1 Reporting#show_nbr_of_meters_readings_per_number_of_customers_with_that_many_readings
1994.490 0.000 0.000 1994.490 1/1 Statistics#list_of_unique_nbr_of_meter_readings_and_number_of_customers_with_that_many_readings
0.000 0.000 0.000 0.000 2/2 Kernel#print
0.000 0.000 0.000 0.000 2/2 String#center
0.000 0.000 0.000 0.000 1/66 NilClass#to_s
--------------------------------------------------------------------------------
1994.490 0.000 0.000 1994.490 1/1 Reporting#show_nbr_of_meters_readings_per_number_of_customers_with_that_many_readings
100.00% 0.00% 1994.490 0.000 0.000 1994.490 1 Statistics#list_of_unique_nbr_of_meter_readings_and_number_of_customers_with_that_many_readings
1964.735 0.000 0.000 1964.735 1/129 Array#map
29.754 0.000 0.000 29.754 1/65 Statistics#list_of_nbr_of_meter_readings_and_customer_ID
--------------------------------------------------------------------------------
29.754 0.000 0.000 29.754 1/65 Statistics#list_of_unique_nbr_of_meter_readings_and_number_of_customers_with_that_many_readings
1964.722 0.001 0.000 1964.722 64/65 Statistics#list_nbr_of_meters_readings
100.00% 0.00% 1994.477 0.001 0.000 1994.476 65 Statistics#list_of_nbr_of_meter_readings_and_customer_ID
29.583 0.031 0.000 29.552 65/129 Array#map
8.025 1.253 0.000 6.772 64/64 Array#uniq
3.621 0.001 0.000 3.620 65/65 Array#each
--------------------------------------------------------------------------------
0.000 0.000 0.000 0.000 63/129 Statistics#list_nbr_of_meters_readings
29.583 0.031 0.000 29.552 65/129 Statistics#list_of_nbr_of_meter_readings_and_customer_ID
1964.735 0.000 0.000 1964.735 1/129 Statistics#list_of_unique_nbr_of_meter_readings_and_number_of_customers_with_that_many_readings
99.99% 0.00% 1994.318 0.032 0.000 1994.287 129 *Array#map
1980.607 1004.496 0.000 976.111 284575/284638 Array#count
1964.735 0.000 0.000 1964.735 64/64 Statistics#nbr_of_customers_with_that_many_readings
--------------------------------------------------------------------------------
0.000 0.000 0.000 0.000 63/284638 Statistics#nbr_of_customers_with_that_many_readings
1980.607 1004.496 0.000 976.111 284575/284638 Array#map
99.30% 50.36% 1980.607 1004.496 0.000 976.111 284638 Array#count
976.111 976.111 0.000 0.0001260948512/1261310302 String#==
0.000 0.000 0.000 0.000 63/7359 Fixnum#==
0.000 0.000 0.000 0.000 1/1 Class#new
0.000 0.000 0.000 0.000 1/1 Exception#backtrace
0.000 0.000 0.000 0.000 1/1 Exception#exception
--------------------------------------------------------------------------------
1964.735 0.000 0.000 1964.735 64/64 Array#map
98.51% 0.00% 1964.735 0.000 0.000 1964.735 64 Statistics#nbr_of_customers_with_that_many_readings
1964.734 0.000 0.000 1964.734 64/64 Statistics#list_nbr_of_meters_readings
0.000 0.000 0.000 0.000 63/284638 Array#count
--------------------------------------------------------------------------------
1964.734 0.000 0.000 1964.734 64/64 Statistics#nbr_of_customers_with_that_many_readings
98.51% 0.00% 1964.734 0.000 0.000 1964.734 64 Statistics#list_nbr_of_meters_readings
1964.722 0.001 0.000 1964.722 64/65 Statistics#list_of_nbr_of_meter_readings_and_customer_ID
0.000 0.000 0.000 0.000 63/129 Array#map
--------------------------------------------------------------------------------
0.326 0.326 0.000 0.000361790/1261310302 Array#index
976.111 976.111 0.000 0.0001260948512/1261310302 Array#count
48.96% 48.96% 976.437 976.437 0.000 0.000 1261310302 String#==
--------------------------------------------------------------------------------
8.025 1.253 0.000 6.772 64/64 Statistics#list_of_nbr_of_meter_readings_and_customer_ID
0.40% 0.06% 8.025 1.253 0.000 6.772 64 Array#uniq
4.076 2.548 0.000 1.527 940352/940352 Array#eql?
2.697 1.714 0.000 0.983 567296/567296 Array#hash
--------------------------------------------------------------------------------
4.076 2.548 0.000 1.527 940352/940352 Array#uniq
0.20% 0.13% 4.076 2.548 0.000 1.527 940352 Array#eql?
0.773 0.767 0.000 0.006 940352/940352 Numeric#eql?
0.754 0.754 0.000 0.000 933056/933056 String#eql?
--------------------------------------------------------------------------------
3.621 0.001 0.000 3.620 65/65 Statistics#list_of_nbr_of_meter_readings_and_customer_ID
0.18% 0.00% 3.621 0.001 0.000 3.620 65 Array#each
2.145 0.000 0.000 2.144 65/65 Statistics#customers_with_electricity
1.455 0.980 0.000 0.476 65/65 Array#collect
0.020 0.020 0.000 0.000 65/65 Array#compact
0.000 0.000 0.000 0.000 65/65 Symbol#to_s
0.000 0.000 0.000 0.000 65/65 String#end_with?
0.000 0.000 0.000 0.000 65/66 NilClass#to_s
--------------------------------------------------------------------------------
2.697 1.714 0.000 0.983 567296/567296 Array#uniq
0.14% 0.09% 2.697 1.714 0.000 0.983 567296 Array#hash
0.504 0.504 0.000 0.000 567296/567296 String#hash
0.478 0.478 0.000 0.000 567296/567296 Kernel#hash
--------------------------------------------------------------------------------
2.145 0.000 0.000 2.144 65/65 Array#each
0.11% 0.00% 2.145 0.000 0.000 2.144 65 Statistics#customers_with_electricity
2.144 0.953 0.000 1.191 65/65 Array#select
0.000 0.000 0.000 0.000 65/65 Statistics#customers
--------------------------------------------------------------------------------
2.144 0.953 0.000 1.191 65/65 Statistics#customers_with_electricity
0.11% 0.05% 2.144 0.953 0.000 1.191 65 Array#select
0.885 0.559 0.000 0.326 324935/324935 Array#index
0.306 0.306 0.000 0.000 324935/324935 Customer#elect_or_gas
--------------------------------------------------------------------------------
1.455 0.980 0.000 0.476 65/65 Array#each
0.07% 0.05% 1.455 0.980 0.000 0.476 65 Array#collect
0.476 0.476 0.000 0.000 576225/576225 Customer#cust_id
--------------------------------------------------------------------------------
0.885 0.559 0.000 0.326 324935/324935 Array#select
0.04% 0.03% 0.885 0.559 0.000 0.326 324935 Array#index
0.326 0.326 0.000 0.000361790/1261310302 String#==
--------------------------------------------------------------------------------
0.773 0.767 0.000 0.006 940352/940352 Array#eql?
0.04% 0.04% 0.773 0.767 0.000 0.006 940352 Numeric#eql?
0.006 0.006 0.000 0.000 7296/7359 Fixnum#==
--------------------------------------------------------------------------------
0.754 0.754 0.000 0.000 933056/933056 Array#eql?
0.04% 0.04% 0.754 0.754 0.000 0.000 933056 String#eql?
--------------------------------------------------------------------------------
0.504 0.504 0.000 0.000 567296/567296 Array#hash
0.03% 0.03% 0.504 0.504 0.000 0.000 567296 String#hash
--------------------------------------------------------------------------------
0.478 0.478 0.000 0.000 567296/567296 Array#hash
0.02% 0.02% 0.478 0.478 0.000 0.000 567296 Kernel#hash
--------------------------------------------------------------------------------
0.476 0.476 0.000 0.000 576225/576225 Array#collect
0.02% 0.02% 0.476 0.476 0.000 0.000 576225 Customer#cust_id
--------------------------------------------------------------------------------
0.306 0.306 0.000 0.000 324935/324935 Array#select
0.02% 0.02% 0.306 0.306 0.000 0.000 324935 Customer#elect_or_gas
--------------------------------------------------------------------------------
0.020 0.020 0.000 0.000 65/65 Array#each
0.00% 0.00% 0.020 0.020 0.000 0.000 65 Array#compact
--------------------------------------------------------------------------------
0.000 0.000 0.000 0.000 63/7359 Array#count
0.006 0.006 0.000 0.000 7296/7359 Numeric#eql?
0.00% 0.00% 0.006 0.006 0.000 0.000 7359 Fixnum#==
--------------------------------------------------------------------------------
0.000 0.000 0.000 0.000 65/65 Array#each
0.00% 0.00% 0.000 0.000 0.000 0.000 65 Symbol#to_s
--------------------------------------------------------------------------------
0.000 0.000 0.000 0.000 65/65 Array#each
0.00% 0.00% 0.000 0.000 0.000 0.000 65 String#end_with?
--------------------------------------------------------------------------------
0.000 0.000 0.000 0.000 65/65 Statistics#customers_with_electricity
0.00% 0.00% 0.000 0.000 0.000 0.000 65 Statistics#customers
--------------------------------------------------------------------------------
0.000 0.000 0.000 0.000 1/66 Reporting#show_nbr_of_meters_readings_per_number_of_customers_with_that_many_readings
0.000 0.000 0.000 0.000 65/66 Array#each
0.00% 0.00% 0.000 0.000 0.000 0.000 66 NilClass#to_s
--------------------------------------------------------------------------------
0.000 0.000 0.000 0.000 1/1 Array#count
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 Interrupt#initialize
--------------------------------------------------------------------------------
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 Interrupt#initialize
0.000 0.000 0.000 0.000 1/1 SignalException#initialize
--------------------------------------------------------------------------------
0.000 0.000 0.000 0.000 2/2 Reporting#show_nbr_of_meters_readings_per_number_of_customers_with_that_many_readings
0.00% 0.00% 0.000 0.000 0.000 0.000 2 Kernel#print
0.000 0.000 0.000 0.000 2/2 IO#write
--------------------------------------------------------------------------------
0.000 0.000 0.000 0.000 1/1 Interrupt#initialize
0.00% 0.00% 0.000 0.000 0.000 0.000 1 SignalException#initialize
0.000 0.000 0.000 0.000 1/1 Exception#initialize
--------------------------------------------------------------------------------
0.000 0.000 0.000 0.000 2/2 Kernel#print
0.00% 0.00% 0.000 0.000 0.000 0.000 2 IO#write
--------------------------------------------------------------------------------
0.000 0.000 0.000 0.000 1/1 SignalException#initialize
0.00% 0.00% 0.000 0.000 0.000 0.000 1 Exception#initialize
--------------------------------------------------------------------------------
0.000 0.000 0.000 0.000 2/2 Reporting#show_nbr_of_meters_readings_per_number_of_customers_with_that_many_readings
0.00% 0.00% 0.000 0.000 0.000 0.000 2 String#center
--------------------------------------------------------------------------------
0.000 0.000 0.000 0.000 1/1 Array#count
0.00% 0.00% 0.000 0.000 0.000 0.000 1 Exception#exception
--------------------------------------------------------------------------------
0.000 0.000 0.000 0.000 1/1 Array#count
0.00% 0.00% 0.000 0.000 0.000 0.000 1 Exception#backtrace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment