trashed 3.2.7 → 3.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/trashed/instruments/ree_gc.rb +1 -1
- data/lib/trashed/instruments/ruby_gc.rb +19 -7
- metadata +8 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8605dfac9cdf258de2cd15e1b1dba1f64be269de8d46dc4c6c7ad3e6e344673
|
4
|
+
data.tar.gz: 8f9d5b604c45a801ed2872a66b187a0905a3c371fe42a32ca40e4ade49c07e6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84228d81e2285d328d43f5d568489fa3107639be507ff848db6816c5dfea30cf2afe193a29e8f389419324d2754a816ea6686e128df781fd52062572f3be02b5
|
7
|
+
data.tar.gz: f606088042009c1a068a4ef547df33ccdf4ef6ff26ce11a274e1dd8483e0ddaf8c5e30d120d9aadbecfdba98dde2b704839277dfe44f3e778057cdc55a2ba01a
|
@@ -18,7 +18,7 @@ module Trashed
|
|
18
18
|
|
19
19
|
timings.update \
|
20
20
|
:'GC.count' => GC.collections - before[:gc_count],
|
21
|
-
:'GC.time' => GC.time - before[:gc_time],
|
21
|
+
:'GC.time' => (GC.time - before[:gc_time]) / 1000.0,
|
22
22
|
:'GC.memory' => GC.allocated_size - before[:gc_memory],
|
23
23
|
:'GC.allocated_objects' => ObjectSpace.allocated_objects - before[:objects]
|
24
24
|
|
@@ -6,21 +6,33 @@ module Trashed
|
|
6
6
|
end
|
7
7
|
|
8
8
|
MEASUREMENTS = {
|
9
|
-
:count => :'GC.count'
|
9
|
+
:count => :'GC.count'
|
10
|
+
}
|
11
|
+
|
12
|
+
RUBY_2X_MEASUREMENTS = {
|
10
13
|
:major_gc_count => :'GC.major_count',
|
11
|
-
:minor_gc_count => :'GC.minor_gc_count'
|
14
|
+
:minor_gc_count => :'GC.minor_gc_count'
|
15
|
+
}
|
12
16
|
|
13
|
-
# Detect Ruby 2.1
|
17
|
+
# Detect Ruby 1.9, 2.1 or 2.2 GC.stat naming
|
14
18
|
begin
|
15
19
|
GC.stat :total_allocated_objects
|
20
|
+
rescue TypeError
|
21
|
+
# Ruby 1.9, nothing to do
|
16
22
|
rescue ArgumentError
|
23
|
+
# Ruby 2.1
|
17
24
|
MEASUREMENTS.update \
|
18
|
-
|
19
|
-
|
25
|
+
RUBY_2X_MEASUREMENTS.merge(
|
26
|
+
:total_allocated_object => :'GC.allocated_objects',
|
27
|
+
:total_freed_object => :'GC.freed_objects'
|
28
|
+
)
|
20
29
|
else
|
30
|
+
# Ruby 2.2+
|
21
31
|
MEASUREMENTS.update \
|
22
|
-
|
23
|
-
|
32
|
+
RUBY_2X_MEASUREMENTS.merge(
|
33
|
+
:total_allocated_objects => :'GC.allocated_objects',
|
34
|
+
:total_freed_objects => :'GC.freed_objects'
|
35
|
+
)
|
24
36
|
end
|
25
37
|
|
26
38
|
def measure(state, timings, gauges)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trashed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Daer
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: statsd-ruby
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '12'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '12'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: minitest
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -76,7 +76,7 @@ homepage: https://github.com/basecamp/trashed
|
|
76
76
|
licenses:
|
77
77
|
- MIT
|
78
78
|
metadata: {}
|
79
|
-
post_install_message:
|
79
|
+
post_install_message:
|
80
80
|
rdoc_options: []
|
81
81
|
require_paths:
|
82
82
|
- lib
|
@@ -91,9 +91,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
91
|
- !ruby/object:Gem::Version
|
92
92
|
version: '0'
|
93
93
|
requirements: []
|
94
|
-
|
95
|
-
|
96
|
-
signing_key:
|
94
|
+
rubygems_version: 3.1.4
|
95
|
+
signing_key:
|
97
96
|
specification_version: 4
|
98
97
|
summary: Rack request GC stats => logs + StatsD
|
99
98
|
test_files: []
|