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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d9ff3377cc883d1ab7a83e3c58fdf8a93febc264
4
- data.tar.gz: 278e304ad67da6a038a0efd3061e8cabc40e25b6
3
+ metadata.gz: 5ad0ae3fca7a60277dacc3bd16d8a8fe2f5979ab
4
+ data.tar.gz: 49a446e817f49481f0bfac6f32971bc2820e80d1
5
5
  SHA512:
6
- metadata.gz: 1191b4f5d26392acb58406d415b3228afadcf5640aee59b9379608f275f8570f618c733bac83bf16ccbf1ec080be8c47823298f4fe3ffacd6de68fc90a6467bd
7
- data.tar.gz: 62c5eb11c829b53ac8f666aff997698216611964c7ca28df057fe7b57b481ed802269adce6ed9535c1dac03db7ed71dac6db954826c368f9bc139c36ec11a694
6
+ metadata.gz: 3b8bdac22d2f426164d7f8b66dc18878311d009c601bc5de2fb7beeb1ddd4ab49ef576a1d806e9dcd1532c634a135e4594420dd492d23b3bba9c72910cbd8f00
7
+ data.tar.gz: 8f3f3c4775b28cc2373a5f11162040c1ffffc28e935526ff67e04209f6a8a9182ee0d73d6535b6be29c2b51e37f604cead4f15cb9ae023018b7d6caf69e39681
@@ -1,3 +1,3 @@
1
1
  module JRMonitor
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -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(:type) { "cpu" }
61
+ let(:ordered_by) { "cpu" }
47
62
 
48
63
  let(:threads) do
49
- subject.generate(type)
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.2.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-01-19 00:00:00.000000000 Z
11
+ date: 2016-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler