15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# File 'lib/heapy.rb', line 15
def help
puts "$ heapy read <file|command> <number>\n\nWhen run with only a file, it will output the generation and count pairs:\n\n $ heapy read tmp/2015-09-30-heap.dump\nGeneration: nil object count: 209191\nGeneration: 14 object count: 407\nGeneration: 15 object count: 638\nGeneration: 16 object count: 748\nGeneration: 17 object count: 1023\nGeneration: 18 object count: 805\n\nWhen run with a file and a number it will output detailed information for that\ngeneration:\n\n $ heapy read tmp/2015-09-30-heap.dump 17\n\nAnalyzing Heap (Generation: 17)\n-------------------------------\n\nallocated by memory (44061517) (in bytes)\n==============================\n 39908512 /app/vendor/ruby-2.2.3/lib/ruby/2.2.0/timeout.rb:79\n 1284993 /app/vendor/ruby-2.2.3/lib/ruby/2.2.0/openssl/buffering.rb:182\n201068 /app/vendor/bundle/ruby/2.2.0/gems/json-1.8.3/lib/json/common.rb:223\n189272 /app/vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.13.2.302/lib/new_relic/agent/stats_engine/stats_hash.rb:39\n172531 /app/vendor/ruby-2.2.3/lib/ruby/2.2.0/net/http/header.rb:172\n 92200 /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/core_ext/numeric/conversions.rb:131\n"
end
|