schwad_performance_logger 0.3.0 → 0.3.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: 8823086eed0c0363c91480f19696b7a643880c1a368f992c47ba91f523e689de
4
- data.tar.gz: e8d5e0f0d27facc1fecb0c30c7af37eb27e5f3cd9424cfc0a2ac5bfd63cce612
3
+ metadata.gz: 912ce10f567df0801f90fb5acf0c19262b9bd3a8c263fcb03518a1e3b9e75713
4
+ data.tar.gz: 7504dbcafbd7d595e37c9e7a4afe45df6c23a01aefd0bc492a583342b747d198
5
5
  SHA512:
6
- metadata.gz: 94f1e01c9f41e6fb2911f3d129203cf12826ab7ee868890fefaf1f208314163d42d4f0e3c8eb2064bc25659536f9f0ed5dd14d305ff566f44d28dd0cb28590a1
7
- data.tar.gz: 0e8a7d78bab70bab0653579d3dd00ddce12dd3e1374974d0d8bd23e985577dc5abd28d9772344d0edaa77d73df3ba6ce8ca6e4912ebfb39336e3cc71246572b1
6
+ metadata.gz: 374b2cc008a159510090fc19d0a54402e1c080ab4a2e0afff493c11225dde239de02b3a3c2ab8b3adffdb75f867136996fba391838837093545101fbf311ba71
7
+ data.tar.gz: 92f1a3fe5b1a58d8cf5b7aeaaf78f9ab6fa5010c8911fc7d0fed861d115321fe412b5ab69922f597d655657c5c39e2fc345ade6fb25fdfa87bf069cd7f940ee8
@@ -5,7 +5,6 @@ require 'get_process_mem'
5
5
  require 'benchmark/ips'
6
6
  require 'schwad_performance_logger/schwad_performance_logger'
7
7
 
8
-
9
8
  module SchwadPerformanceLogger
10
9
  def self.new(opts={})
11
10
  if opts.is_a?(Hash)
@@ -27,14 +26,14 @@ module SchwadPerformanceLogger
27
26
 
28
27
  def self.time
29
28
  suppress_output do
30
- length_of_time = []
29
+ @length_of_time = []
31
30
  10.times do
32
31
  start_time = Time.now
33
32
  yield
34
- length_of_time << Time.now - start_time
33
+ @length_of_time << Time.now - start_time
35
34
  end
36
35
  end
37
- puts "Average runtime #{length_of_time.sum / 10.0} seconds. Max time #{length_of_time.max}.seconds"
36
+ puts "Average runtime #{@length_of_time.sum / 10.0} seconds. Max time #{@length_of_time.max}.seconds"
38
37
  end
39
38
 
40
39
  private
@@ -1,3 +1,3 @@
1
1
  module SchwadPerformanceLogger
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
Binary file
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schwad_performance_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Schwaderer
@@ -101,6 +101,8 @@ files:
101
101
  - lib/schwad_performance_logger.rb
102
102
  - lib/schwad_performance_logger/schwad_performance_logger.rb
103
103
  - lib/schwad_performance_logger/version.rb
104
+ - schwad_performance_logger-0.2.0.gem
105
+ - schwad_performance_logger-0.3.0.gem
104
106
  - schwad_performance_logger.gemspec
105
107
  homepage: https://schwad.github.io
106
108
  licenses: