evt-diagnostics-sample 2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af1eb3dfb46cc55a1780917a70eca68c9b25efd08da00f5503d73d0f29597f8f
4
- data.tar.gz: e7da7091020fc758a8322230105e9ac05fe2a7cb8c7aa72593b4004c08aa1e35
3
+ metadata.gz: c825285beeee598bf673dbbf183de3351cda35a10117b51084e4c8797ce9542f
4
+ data.tar.gz: 704afae0730913c053f566d73f99ab9faaa62233c70ec3d2c20185619d038add
5
5
  SHA512:
6
- metadata.gz: 8db1f5d734f6bc7f5e3ae2ccc59c7bd70d41cf03b4fa6fe17fd529eeac16c3c51a4305fe69b3e55f05a75e7ea0c65ba2913750c500b71a39481bbe603ae8c751
7
- data.tar.gz: 2a28147fb35abe50f7361a18a82d6034540b23fcb0b60409ff59c5d3cab104e508589956af9910b24c039616e1b8b67f9715693d2a21bd1e2fb5ea9a69c79dca
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: 2.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: 2019-12-10 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,8 +105,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  - !ruby/object:Gem::Version
106
106
  version: '0'
107
107
  requirements: []
108
- rubygems_version: 3.0.1
109
- signing_key:
108
+ rubygems_version: 3.5.9
109
+ signing_key:
110
110
  specification_version: 4
111
111
  summary: Sampling and measurement of execution cycles
112
112
  test_files: []