memory_profiler 0.9.2 → 0.9.3

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: 9769a5f77565cd3c8f4bce9a504c63252e042034
4
- data.tar.gz: b2cb63c8a1a9961b39fa427fd252f24624b5ec79
3
+ metadata.gz: 545f30ccec454603793e034e1a9fe59822b20af0
4
+ data.tar.gz: 96809aaa48fcdfab351598ef9dbcf4913f065d1d
5
5
  SHA512:
6
- metadata.gz: 702c11c6173f2721e6592932fef57b1295fdc92aed2800bcad2f48dd95a6e0f3fdc18dc097cd348747c098029fa6c001dfac96f386ab53d77b5e3efea5d36663
7
- data.tar.gz: b96f1184db20cf3cdae75486a65aed8e0442e1512d2a4983bda35a208b8381319bab38d0ed1ba2c9ea52f065d950ac6c2155fa6120e33579d1997d487b17b40c
6
+ metadata.gz: 0f5b25c569547c35cb625e5597f266d5d7dba81a867a964bfd81bf94a92f51925f79193ddcf3b673b6515e8caf241a96a53e7f5243ec704eea7a26e4c9755546
7
+ data.tar.gz: 8b4b08dafe1c47da018538e1f6fcc41db8440d7a4674e4b708a2c1db38a187febb6bef1a3402ea90a9d4fc6f81c212e11345a6eb1bf9acc7a50bd7a112d3fe61
data/README.md CHANGED
@@ -366,6 +366,9 @@ Memory profiler also performs some String analysis to help you find strings that
366
366
 
367
367
  ## Changelog
368
368
 
369
+ ### 0.9.3
370
+ - Add class reporting
371
+
369
372
  ### 0.9.2
370
373
  - Fix incorrect syntax in rescue clause
371
374
 
@@ -32,6 +32,10 @@ module MemoryProfiler
32
32
  "#{stat.file}:#{stat.line}"
33
33
  }
34
34
 
35
+ register_type :class, lambda { |stat|
36
+ "#{stat.class_name}"
37
+ }
38
+
35
39
  attr_accessor :strings_retained, :strings_allocated
36
40
  attr_accessor :total_retained, :total_allocated
37
41
 
@@ -87,7 +91,7 @@ module MemoryProfiler
87
91
  io.puts
88
92
  ["allocated", "retained"]
89
93
  .product(["memory", "objects"])
90
- .product(["gem", "file", "location"])
94
+ .product(["gem", "file", "location", "class"])
91
95
  .each do |(type, metric), name|
92
96
  dump "#{type} #{metric} by #{name}", self.send("#{type}_#{metric}_by_#{name}"), io
93
97
  end
@@ -1,3 +1,3 @@
1
1
  module MemoryProfiler
2
- VERSION = "0.9.2"
2
+ VERSION = "0.9.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: memory_profiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Saffron
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-31 00:00:00.000000000 Z
11
+ date: 2015-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler