allocation_tracer 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 23ebd689eb4c1ebcd32b8c7c227b5b7fd7aeee05
4
- data.tar.gz: 441c7ed8de2a1790996d3d25d077073886aaf952
3
+ metadata.gz: b19eff04bc2f13b10c5be229ec09078e45a7f39c
4
+ data.tar.gz: 77b084565a41babbb0d4029f5e438ab4a04ed220
5
5
  SHA512:
6
- metadata.gz: 89064f9d718df528daf3c8f234b79e4500cb0f9dd361bda963bffb29a808fd2595306d3f3df27dde44b7b8c87317f0818b71403532505ffd660c4b1533741597
7
- data.tar.gz: cf0844372d6cc8b1f5268c6c37e93ceb5e63bd39f77f366d02f45d9eb54cdcc552700d30826d9812afb50b23c67c0faab74f8dc71b49bab1843d923a287b0dd1
6
+ metadata.gz: 3707b360cef9e79212d07c852abebbb071c533e17b968be433f2674b767c639395b82067cc31de0166c19b625d1b875f35010df6bf23ca8393b89db116e38088
7
+ data.tar.gz: 683bf5854d12a5dcabe79a796e82c708a61461622f5e013b4ef27f82b2a30fbdbf103e72d36153d01772d0b9980cb25eeb1d987fe9a712184f57433dd519417c
@@ -1,3 +1,3 @@
1
1
  module ObjectSpace::AllocationTracer
2
- VERSION = "0.6.2"
2
+ VERSION = "0.6.3"
3
3
  end
@@ -24,7 +24,7 @@ module Rack
24
24
 
25
25
  table = result.map{|(file, line, klass), (count, oldcount, total_age, min_age, max_age, memsize)|
26
26
  ["#{Rack::Utils.escape_html(file)}:#{'%04d' % line}",
27
- klass ? klass.name : '<internal>',
27
+ Rack::Utils.escape_html(klass ? klass.name : '<internal>'),
28
28
  count, oldcount, total_age / Float(count), min_age, max_age, memsize]
29
29
  }
30
30
 
@@ -33,7 +33,14 @@ module Rack
33
33
  ary = @sort_order.map{|i| Numeric === vs[i] ? -vs[i] : vs[i]}
34
34
  }
35
35
  rescue
36
- # ignore sorting error
36
+ ts = []
37
+ table.each{|*cols|
38
+ cols.each.with_index{|c, i|
39
+ h = (ts[i] ||= Hash.new(0))
40
+ h[c.class] += 1
41
+ }
42
+ }
43
+ return "<pre>Sorting error\n" + Rack::Utils.escape_html(h.inspect) + "</pre>"
37
44
  end
38
45
 
39
46
  headers = %w(path class count old_count average_age min_age max_age memsize).map.with_index{|e, i|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: allocation_tracer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Koichi Sasada