memory-leak 0.10.1 → 0.10.2

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: 61f53a3abeb664b0d47bc2d889e6fe1b34ce2a29baa5695142efd967598e05a3
4
- data.tar.gz: 68f58dcab4789dd5ca02f8e15d4123cefd4ca5fde5e589d5fdaf19681713bd27
3
+ metadata.gz: ce86ec1f5824a2cafd31ca3765df1967fa8d2226ef88e0479cf0fca07df91cb9
4
+ data.tar.gz: 3bcaf2a418112277e98de7f81bc7991fedf14e475e9e0801e9a962a567db31aa
5
5
  SHA512:
6
- metadata.gz: f60866beb7f8d7c2202992442581ce94dd0a5d3b313a4275d2f1073552292c754d481bec364173953d7e53700175f3050efc1b14426ae8292e2a1e549b0d6c3c
7
- data.tar.gz: ffcc71882d4f318acce9eab8e516831f8969b4919cb5ac2a762488a782f41501229ada6794429d5e1419f858ee8e40944cb6bf8859997986080fb3e1c06f5412
6
+ metadata.gz: 8dd4aba9d1e9d835697c809540d28c72ccb2eb901993ec967621740293bf37fd7b20d3d8daf1641dde087d90539b51f63ad8f2bc194d0c0d4a98664ed64f5d1e
7
+ data.tar.gz: 3a0a336dbfb32bc00d904519ccef29f38c3a10398b1dc17c6f4cc98860e02b7740e5903dbfc1507f371e70d83750ae067e83e004bd2049264bff21be10159a66
checksums.yaml.gz.sig CHANGED
@@ -1,2 +1,3 @@
1
- ����0��d���
2
- 91�Z��>ś�fZ�nP�<��+�B��� �����e&�32�`"a-v�&Z��`�X,�����Q����:�wD٤`S���,w�#b�D�:t
1
+ �KdE�K�W��L�Y���޾�o�~V'��GlL���Ʃ.���v���v �6��>)�~��r�@��Z���[#����j�5����c]�����R���B-��+;�5�{fye_�f#�
2
+ ���IȠ��H0)�Z��_ۥ��Z�\�R eTH��c���&��Ò�T&���]�h�h>�o �.@�@���D��'@�cg�b/�}'���JG ��g����V����`*7r0G�Z
3
+ ��O�m���ڷ�7J�B����L��������ÈK�c�J,ֶ��h��X��7vl���I������.����/�ވ1��r�1�}�E�֝��x��}��BW��bXݹ�"�}����^��cw�@�d�rI<�R�};�
@@ -18,11 +18,6 @@ module Memory
18
18
  # True memory leaks will eventually hit this threshold_size, while small fluctuations will not.
19
19
  DEFAULT_THRESHOLD_SIZE = 1024*1024*10
20
20
 
21
- # We track the last N process size increases.
22
- # If the process size is not stabilizing within the specified increase_limit, we can assume there is a leak.
23
- # With a default interval of 10 seconds, this will track the last ~3 minutes of process size increases.
24
- DEFAULT_INCREASE_LIMIT = 20
25
-
26
21
  # Create a new monitor.
27
22
  #
28
23
  # @parameter process_id [Integer] The process ID to monitor.
@@ -30,7 +25,7 @@ module Memory
30
25
  # @parameter maximum_size_limit [Numeric | Nil] The maximum process size allowed, in bytes, before we assume a memory leak.
31
26
  # @parameter threshold_size [Numeric] The threshold for process size increases, in bytes.
32
27
  # @parameter increase_limit [Numeric] The limit for the number of process size increases, before we assume a memory leak.
33
- def initialize(process_id = Process.pid, maximum_size: nil, maximum_size_limit: nil, threshold_size: DEFAULT_THRESHOLD_SIZE, increase_limit: DEFAULT_INCREASE_LIMIT)
28
+ def initialize(process_id = Process.pid, maximum_size: nil, maximum_size_limit: nil, threshold_size: DEFAULT_THRESHOLD_SIZE, increase_limit: nil)
34
29
  @process_id = process_id
35
30
 
36
31
  @sample_count = 0
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Memory
7
7
  module Leak
8
- VERSION = "0.10.1"
8
+ VERSION = "0.10.2"
9
9
  end
10
10
  end
data/readme.md CHANGED
@@ -14,6 +14,10 @@ Please see the [project documentation](https://socketry.github.io/memory-leak/)
14
14
 
15
15
  Please see the [project releases](https://socketry.github.io/memory-leak/releases/index) for all releases.
16
16
 
17
+ ### v0.10.2
18
+
19
+ - Disable default `increase_limit: nil`.
20
+
17
21
  ### v0.10.0
18
22
 
19
23
  - Introduce `free_size_minimum` to monitor minimum free memory size, which can be used to trigger alerts or actions when available memory is critically low.
data/releases.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Releases
2
2
 
3
+ ## v0.10.2
4
+
5
+ - Disable default `increase_limit: nil`.
6
+
3
7
  ## v0.10.0
4
8
 
5
9
  - Introduce `free_size_minimum` to monitor minimum free memory size, which can be used to trigger alerts or actions when available memory is critically low.
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: memory-leak
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file