jruby-monitoring 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/jruby-ext/target/classes/com/purbon/jrmonitor/monitors/HotThreadsMonitor$1.class +0 -0
- data/jruby-ext/target/classes/com/purbon/jrmonitor/monitors/HotThreadsMonitor$ThreadReport.class +0 -0
- data/jruby-ext/target/classes/com/purbon/jrmonitor/monitors/HotThreadsMonitor.class +0 -0
- data/jruby-ext/target/classes/com/purbon/jrmonitor/reports/RubyThreadsReport.class +0 -0
- data/lib/monitoring/version.rb +1 -1
- data/spec/lib/thread_monitor_spec.rb +17 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ad0ae3fca7a60277dacc3bd16d8a8fe2f5979ab
|
4
|
+
data.tar.gz: 49a446e817f49481f0bfac6f32971bc2820e80d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b8bdac22d2f426164d7f8b66dc18878311d009c601bc5de2fb7beeb1ddd4ab49ef576a1d806e9dcd1532c634a135e4594420dd492d23b3bba9c72910cbd8f00
|
7
|
+
data.tar.gz: 8f3f3c4775b28cc2373a5f11162040c1ffffc28e935526ff67e04209f6a8a9182ee0d73d6535b6be29c2b51e37f604cead4f15cb9ae023018b7d6caf69e39681
|
Binary file
|
data/jruby-ext/target/classes/com/purbon/jrmonitor/monitors/HotThreadsMonitor$ThreadReport.class
CHANGED
Binary file
|
Binary file
|
Binary file
|
data/lib/monitoring/version.rb
CHANGED
@@ -41,12 +41,27 @@ describe JRMonitor::Report::Threads do
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
+
context "with options filtering" do
|
45
|
+
|
46
|
+
let(:stacktrace_size) { 4 }
|
47
|
+
let(:threads) do
|
48
|
+
subject.generate(:stacktrace_size => stacktrace_size )
|
49
|
+
end
|
50
|
+
|
51
|
+
it "fetches N stack straces for each thread" do
|
52
|
+
threads.each_pair do |key, values|
|
53
|
+
next if ['Signal Dispatcher', 'Reference Handler'].include?(key)
|
54
|
+
expect(values["thread.stacktrace"].count).to eq(stacktrace_size)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
44
59
|
describe "#ordering" do
|
45
60
|
|
46
|
-
let(:
|
61
|
+
let(:ordered_by) { "cpu" }
|
47
62
|
|
48
63
|
let(:threads) do
|
49
|
-
subject.generate(
|
64
|
+
subject.generate(:ordered_by => ordered_by)
|
50
65
|
end
|
51
66
|
|
52
67
|
it 'fetch values ordered by cpu.time' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jruby-monitoring
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pere Urbon-Bayes
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|