evt-diagnostics-sample 1.0.0.0 → 2.0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/diagnostics/sample/result.rb +7 -7
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c825285beeee598bf673dbbf183de3351cda35a10117b51084e4c8797ce9542f
|
4
|
+
data.tar.gz: 704afae0730913c053f566d73f99ab9faaa62233c70ec3d2c20185619d038add
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc251f9fe1b71b1ff5f35934b20a7415732ffab025af6f587ff5013b0d2361cf2936e7483f517389e80ee1075079c50ad705d8520d2248a3badf555e26c965f7
|
7
|
+
data.tar.gz: 9b0b6178a6e87bb6acd16e13e2ea12d2fdbbf78aabb6ded3e0d1c52086f181aac000cd6c0a6224dcaac0f19cb76604187ce8873e7f6326927a428c43b9817a7c
|
@@ -3,15 +3,15 @@ module Diagnostics
|
|
3
3
|
class Result
|
4
4
|
include Schema::DataStructure
|
5
5
|
|
6
|
-
attribute :cycles, Integer, default: 0
|
7
|
-
attribute :time_milliseconds, Float, default: 0.0
|
8
|
-
attribute :time_sum_squares, Float, default: 0.0
|
6
|
+
attribute :cycles, Integer, default: proc { 0 }
|
7
|
+
attribute :time_milliseconds, Float, default: proc { 0.0 }
|
8
|
+
attribute :time_sum_squares, Float, default: proc { 0.0 }
|
9
9
|
|
10
|
-
attribute :warmup_cycles, Integer, default: 0
|
11
|
-
attribute :warmup_time_milliseconds, Float, default: 0.0
|
12
|
-
attribute :warmup_time_sum_squares, Float, default: 0.0
|
10
|
+
attribute :warmup_cycles, Integer, default: proc { 0 }
|
11
|
+
attribute :warmup_time_milliseconds, Float, default: proc { 0.0 }
|
12
|
+
attribute :warmup_time_sum_squares, Float, default: proc { 0.0 }
|
13
13
|
|
14
|
-
attribute :gc, Boolean, default: false
|
14
|
+
attribute :gc, Boolean, default: proc { false }
|
15
15
|
|
16
16
|
def cycle(elapsed_time)
|
17
17
|
self.time_milliseconds += elapsed_time
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evt-diagnostics-sample
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Eventide Project
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: evt-log
|
@@ -90,7 +90,7 @@ homepage: https://github.com/eventide-project/diagnostics-sample
|
|
90
90
|
licenses:
|
91
91
|
- MIT
|
92
92
|
metadata: {}
|
93
|
-
post_install_message:
|
93
|
+
post_install_message:
|
94
94
|
rdoc_options: []
|
95
95
|
require_paths:
|
96
96
|
- lib
|
@@ -105,9 +105,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
105
|
- !ruby/object:Gem::Version
|
106
106
|
version: '0'
|
107
107
|
requirements: []
|
108
|
-
|
109
|
-
|
110
|
-
signing_key:
|
108
|
+
rubygems_version: 3.5.9
|
109
|
+
signing_key:
|
111
110
|
specification_version: 4
|
112
111
|
summary: Sampling and measurement of execution cycles
|
113
112
|
test_files: []
|