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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/memory/profiler/sampler.rb +3 -2
- data/lib/memory/profiler/version.rb +1 -1
- data/readme.md +8 -8
- data/releases.md +8 -0
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c37b0bd859dce7d49e9bd34e9651f31ba110d94f0547b7a94e1ba03648b1bfd6
|
|
4
|
+
data.tar.gz: 584d98ee1122ef8cc0f7d463b7dc17bfb73ea49f1855c9bdc846750063c9f5ee
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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 =
|
|
108
|
+
@capture.track_all = track_all
|
|
108
109
|
@call_trees = {}
|
|
109
110
|
@samples = {}
|
|
110
111
|
end
|
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
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
|
Binary file
|