derailed_benchmarks 1.1.1 → 1.1.2

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
  SHA1:
3
- metadata.gz: 375f243912a424ba45e64e6fd2c1aeb7c1349f1d
4
- data.tar.gz: 65bc16f1ba1b5fe109c5971eac8e67c73ba30057
3
+ metadata.gz: 9cf1b871ce8c7deffce17de7637c74d793a3a9e0
4
+ data.tar.gz: c46cba5071f6d1feeb3a9e298b98ef2cde8337c6
5
5
  SHA512:
6
- metadata.gz: 7af36f99ed23a45e684fd220c497673f529227530194693fea67cffc3f9ecbecac720adda9e1fa9576f26e3051834b14584d0135e290a3b5148b1c7fd7d75001
7
- data.tar.gz: 97c8617852ade4dfbf9eabfe995431be69dabf860de03d8066205ed960313d17024722cc9ae5847b5835c280e174f6fdc3661cfeb923491a80b3cf9921950280
6
+ metadata.gz: 8423754dffa98ae1667bd95a71d645f3114b3d2b42a9abd5d08f947f51bd2f5f7d771d33451a290f8344eded7eb5c7ffcc4e9e266641ec3f9e8e9eef26bb45f7
7
+ data.tar.gz: 542ee58f5378918bf2558448d9e691d9b9f38d6df700429839998180a5aec7919eae74fb9cea199b09d7f158771e0421fe1e7155cd1ba6e1f062ea3f74018aca
@@ -1,5 +1,9 @@
1
1
  # A Log of Changes!
2
2
 
3
+ ## [1.1.2] - 2015-10-05
4
+
5
+ - Added ability to use TEST_COUNT environment variable with `perf:heap`.
6
+
3
7
  ## [1.1.1] - 2015-10-01
4
8
 
5
9
  - Added ability to create a heap dump `perf:heap`.
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- derailed_benchmarks (1.1.1)
4
+ derailed_benchmarks (1.1.2)
5
5
  benchmark-ips (~> 2)
6
6
  get_process_mem (~> 0)
7
- heap_inspect (~> 0)
7
+ heapy (~> 0)
8
8
  memory_profiler (~> 0)
9
9
  rack (~> 1)
10
10
  rake (~> 10)
@@ -59,7 +59,7 @@ GEM
59
59
  warden (~> 1.2.3)
60
60
  erubis (2.7.0)
61
61
  get_process_mem (0.2.0)
62
- heap_inspect (0.1.0)
62
+ heapy (0.1.0)
63
63
  hike (1.2.3)
64
64
  i18n (0.7.0)
65
65
  journey (1.0.4)
@@ -18,7 +18,7 @@ Gem::Specification.new do |gem|
18
18
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
19
19
  gem.require_paths = ["lib"]
20
20
 
21
- gem.add_dependency "heap_inspect", "~> 0"
21
+ gem.add_dependency "heapy", "~> 0"
22
22
  gem.add_dependency "memory_profiler", "~> 0"
23
23
  gem.add_dependency "get_process_mem", "~> 0"
24
24
  gem.add_dependency "benchmark-ips", "~> 2"
@@ -270,17 +270,22 @@ namespace :perf do
270
270
 
271
271
  file_name = "tmp/#{Time.now.iso8601}-heap.dump"
272
272
  ObjectSpace.trace_object_allocations_start
273
- call_app
273
+ puts "Running #{ TEST_COUNT } times"
274
+ TEST_COUNT.times {
275
+ call_app
276
+ }
274
277
  GC.start
275
278
 
276
279
  puts "Heap file generated: #{ file_name.inspect }"
277
280
  ObjectSpace.dump_all(output: File.open(file_name, 'w'))
278
281
 
279
- require 'heap_inspect'
282
+ require 'heapy'
280
283
 
281
- HeapInspect::Analyzer.new(file_name).analyze
284
+ Heapy::Analyzer.new(file_name).analyze
282
285
 
283
286
  puts ""
284
- puts "Try uploading #{file_name.inspect} to http://tenderlove.github.io/heap-analyzer/"
287
+ puts "Run `$ heapy --help` for more options"
288
+ puts ""
289
+ puts "Also try uploading #{file_name.inspect} to http://tenderlove.github.io/heap-analyzer/"
285
290
  end
286
291
  end
@@ -1,3 +1,3 @@
1
1
  module DerailedBenchmarks
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: derailed_benchmarks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Schneeman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-01 00:00:00.000000000 Z
11
+ date: 2015-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: heap_inspect
14
+ name: heapy
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"