memory-profiler 1.6.0 → 1.6.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: 8a65991a6612d28ede2c4ab5652bcf410e7edf92a0f98e8bdeebd921b64232d6
4
- data.tar.gz: 230a10b0d5ed42f74d19007534dbae1ee49df3c67d0507fcf42a0fc67b1cf5e3
3
+ metadata.gz: c37b0bd859dce7d49e9bd34e9651f31ba110d94f0547b7a94e1ba03648b1bfd6
4
+ data.tar.gz: 584d98ee1122ef8cc0f7d463b7dc17bfb73ea49f1855c9bdc846750063c9f5ee
5
5
  SHA512:
6
- metadata.gz: 7b64a8a6b0a500f84c52689aa5affad466d19e3ddc723db2014af3ef784fe35b7d6704aa2bf363f27c23d8fe75e27bdef5c7e969736a2bedcfc925467dd3e16a
7
- data.tar.gz: da48ff77a1915aaa978ce162b6c44d310b6b4a77af59b6df18c3e6fc92b19aa40df99473bb461dafd0a160ded3c5721681cce3e22dece393d484c0b2c51e67b4
6
+ metadata.gz: 592a2a9663b43e9bff2ed4782bc3daa7b02ef11a8009927be2b810c4f4b441ef76296dd2cf4edfc6c10c68833c0c9e442bfe950b7e29a2537960455378fe9f73
7
+ data.tar.gz: 3c25a8aaa03262f0665dfc5c31325728f721301891c336848d87e71073285eba9bc318bcad122b1835bec5e29346508ffa449636dbb6a82b200c4efd743db315
checksums.yaml.gz.sig CHANGED
Binary file
@@ -95,7 +95,8 @@ module Memory
95
95
  # @parameter prune_limit [Integer] Keep only top N children per node during pruning (default: 5).
96
96
  # @parameter prune_threshold [Integer] Number of insertions before auto-pruning (nil = no auto-pruning).
97
97
  # @parameter gc [Hash | Nil] Run GC with these options before each sample (nil = don't run GC).
98
- def initialize(depth: 4, filter: nil, increases_threshold: 10, prune_limit: 5, prune_threshold: nil, gc: nil)
98
+ # @parameter track_all [Boolean] Automatically track all classes that allocate objects (default: true).
99
+ def initialize(depth: 4, filter: nil, increases_threshold: 10, prune_limit: 5, prune_threshold: nil, gc: nil, track_all: true)
99
100
  @depth = depth
100
101
  @filter = filter || default_filter
101
102
  @increases_threshold = increases_threshold
@@ -104,7 +105,7 @@ module Memory
104
105
  @gc = gc
105
106
 
106
107
  @capture = Capture.new
107
- @capture.track_all = true
108
+ @capture.track_all = track_all
108
109
  @call_trees = {}
109
110
  @samples = {}
110
111
  end
@@ -7,7 +7,7 @@
7
7
  module Memory
8
8
  # @namespace
9
9
  module Profiler
10
- VERSION = "1.6.0"
10
+ VERSION = "1.6.1"
11
11
  end
12
12
  end
13
13
 
data/readme.md CHANGED
@@ -22,6 +22,14 @@ Please see the [project documentation](https://socketry.github.io/memory-profile
22
22
 
23
23
  Please see the [project releases](https://socketry.github.io/memory-profiler/releases/index) for all releases.
24
24
 
25
+ ### v1.6.1
26
+
27
+ - Add `track_all` option to `Sampler`.
28
+
29
+ ### v1.6.0
30
+
31
+ - Add `Capture#track_all` which defaults to false.
32
+
25
33
  ### v1.5.1
26
34
 
27
35
  - Improve performance of object table.
@@ -71,14 +79,6 @@ Please see the [project releases](https://socketry.github.io/memory-profiler/rel
71
79
  - Fix sampler loop interval handling.
72
80
  - Log capture statistics from sampler run loop.
73
81
 
74
- ### v1.1.12
75
-
76
- - Use `rb_obj_id` for tracking object states to avoid compaction issues.
77
-
78
- ### v1.1.11
79
-
80
- - Double buffer shared events queues to fix queue corruption.
81
-
82
82
  ## Contributing
83
83
 
84
84
  We welcome contributions to this project.
data/releases.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Releases
2
2
 
3
+ ## v1.6.1
4
+
5
+ - Add `track_all` option to `Sampler`.
6
+
7
+ ## v1.6.0
8
+
9
+ - Add `Capture#track_all` which defaults to false.
10
+
3
11
  ## v1.5.1
4
12
 
5
13
  - Improve performance of object table.
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: memory-profiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file