trashed 3.2.1 → 3.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/trashed/instruments/ruby_gc_profiler.rb +2 -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: 9be5586ac7b6aebd664a362817c2de50eec2293f
|
4
|
+
data.tar.gz: 402368bf9667ec1f3f5acaa647779c3ebd4a1ab8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13c7398eb5fc99dbf05045f38bc989514212d9eec0652728ef414c0d827ce9d206c90b63f475db1404cae11be27fb69bdcb85f39efd21b53f1c56749ad253aeb
|
7
|
+
data.tar.gz: 4da95ae94891703700174a62ce5f483d668b5724c2e0fc1169ba5e5b11921efb85e9110a419aed50e69ba64fe187e8a7b1f9d97dfbff78d354b9b45e8d6539b2
|
@@ -9,11 +9,11 @@ module Trashed
|
|
9
9
|
|
10
10
|
# Captures in-band GC time and stats.
|
11
11
|
def measure(state, timings, gauges, captured = :GC)
|
12
|
-
timings[:"#{captured}.time"] ||= GC::Profiler.total_time
|
12
|
+
timings[:"#{captured}.time"] ||= 1000 * GC::Profiler.total_time
|
13
13
|
|
14
14
|
if GC::Profiler.respond_to? :raw_data
|
15
15
|
timings[:"#{captured}.count"] ||= GC::Profiler.raw_data.size
|
16
|
-
timings[:'GC.interval'] = GC::Profiler.raw_data.map { |data| data[:GC_INVOKE_TIME] }
|
16
|
+
timings[:'GC.interval'] = GC::Profiler.raw_data.map { |data| 1000 * data[:GC_INVOKE_TIME] }
|
17
17
|
end
|
18
18
|
|
19
19
|
# Clears .total_time and .raw_data
|