mem_kit 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mem_kit/profiler.rb +9 -9
- data/lib/mem_kit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a63448a9152611329b610fde6557caea9c69c3a
|
4
|
+
data.tar.gz: b6ece5c440e8c06aebf9ce51bde9107b64404147
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 197eea62f2eb8172a8eff128fa6db5e4861747ec10c070ff59e8f9c924f3df44b7e08da5cfa4108c31ed5a0586eedbe363ed5b7810161948d1d7ed47517123d3
|
7
|
+
data.tar.gz: db4fae127aed4e32d539c8d5037c6bd075d54204e75d1f79f0ad507bf98a1f22fdbf380f1e45c143f45d7cc44bdad2594b4cc4ac454301c02c2856bd665ccbf0
|
data/lib/mem_kit/profiler.rb
CHANGED
@@ -23,23 +23,23 @@ module MemKit
|
|
23
23
|
|
24
24
|
@is_running = true
|
25
25
|
|
26
|
-
|
26
|
+
@thread = Thread.new do
|
27
27
|
|
28
|
-
|
28
|
+
while @is_running == true do
|
29
29
|
|
30
|
-
|
30
|
+
GC.start
|
31
31
|
|
32
|
-
|
32
|
+
result = collect(limit: limit)
|
33
33
|
|
34
|
-
|
34
|
+
logger.debug("[MemKit::Profiler}] - #{JSON.dump(result)}")
|
35
35
|
|
36
|
-
|
36
|
+
sleep(interval)
|
37
37
|
|
38
|
-
|
38
|
+
end
|
39
39
|
|
40
|
-
|
40
|
+
end
|
41
41
|
|
42
|
-
|
42
|
+
return @thread
|
43
43
|
|
44
44
|
end
|
45
45
|
|
data/lib/mem_kit/version.rb
CHANGED