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 +4 -4
- data/lib/allocation_tracer/version.rb +1 -1
- data/lib/rack/allocation_tracer.rb +9 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b19eff04bc2f13b10c5be229ec09078e45a7f39c
|
4
|
+
data.tar.gz: 77b084565a41babbb0d4029f5e438ab4a04ed220
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3707b360cef9e79212d07c852abebbb071c533e17b968be433f2674b767c639395b82067cc31de0166c19b625d1b875f35010df6bf23ca8393b89db116e38088
|
7
|
+
data.tar.gz: 683bf5854d12a5dcabe79a796e82c708a61461622f5e013b4ef27f82b2a30fbdbf103e72d36153d01772d0b9980cb25eeb1d987fe9a712184f57433dd519417c
|
@@ -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
|
-
|
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|
|