evt-diagnostics-sample 1.0.0.0 → 2.0.0.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e482b279caaefe5411cb6c453e35f02df8009f45670da63ccb03d608bdaf3732
4
- data.tar.gz: 6076c6c71633e257516f9ef2109d34259b842df50a627cab4f0b9bf2dc5e4ddb
3
+ metadata.gz: c825285beeee598bf673dbbf183de3351cda35a10117b51084e4c8797ce9542f
4
+ data.tar.gz: 704afae0730913c053f566d73f99ab9faaa62233c70ec3d2c20185619d038add
5
5
  SHA512:
6
- metadata.gz: 7020c258e35f7a92859091aeac71c3389678d25e4f483bd077ba39d667cc1f663403031c1e8eeda9581b8634b413f3daedc12de5b949baf3e542998778c051a6
7
- data.tar.gz: 850c84e1f717a2ec6756936acabe2aa6c4b570ea3d4761c079e82f131bbc5c723786af072cde21fb347ee883d8a98ed2541da29561f2a0edb01f5583687f5cc6
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: 1.0.0.0
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: 2018-11-04 00:00:00.000000000 Z
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
- rubyforge_project:
109
- rubygems_version: 2.7.6
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: []