scout_apm 3.0.0.pre9 → 3.0.0.pre10
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1bbc487af5636f30f5768e6bae7e8656c24811b
|
4
|
+
data.tar.gz: 9e130174afe2ca2c2fb4764b7bc2bfa483ad95e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49a9d4dc629b9fa48ae63a0f4cefe67ce1eb4a5328213b83b194dfcc4ee745445d72e931ef665ffe78d2f66630e866a10815297b62d89a9e52b56361754990d8
|
7
|
+
data.tar.gz: c2d3469fa72ce16635ef964b0ed3c2e96e8fcdc2c006414ce098ccee9ec3cb1d4dac5ae3ad02de714b3b563e28dbd05a08e1da9c79fe08290f32beb52f9656c3
|
data/ext/rusage/rusage.c
CHANGED
@@ -1,10 +1,35 @@
|
|
1
1
|
// VERSION = "x.y.z"
|
2
2
|
#include <ruby.h>
|
3
|
+
#ifdef _WIN32
|
4
|
+
#define RUSAGE_SELF 0
|
5
|
+
#define RUSAGE_CHILDREN 0
|
6
|
+
#else
|
3
7
|
#include <sys/resource.h>
|
8
|
+
#endif
|
4
9
|
|
5
10
|
VALUE v_usage_struct;
|
6
11
|
|
7
12
|
static VALUE do_rusage_get(int who){
|
13
|
+
#ifdef _WIN32
|
14
|
+
return rb_struct_new(v_usage_struct,
|
15
|
+
rb_float_new(0),
|
16
|
+
rb_float_new(0),
|
17
|
+
LONG2NUM(0),
|
18
|
+
LONG2NUM(0),
|
19
|
+
LONG2NUM(0),
|
20
|
+
LONG2NUM(0),
|
21
|
+
LONG2NUM(0),
|
22
|
+
LONG2NUM(0),
|
23
|
+
LONG2NUM(0),
|
24
|
+
LONG2NUM(0),
|
25
|
+
LONG2NUM(0),
|
26
|
+
LONG2NUM(0),
|
27
|
+
LONG2NUM(0),
|
28
|
+
LONG2NUM(0),
|
29
|
+
LONG2NUM(0),
|
30
|
+
LONG2NUM(0)
|
31
|
+
);
|
32
|
+
#else // _WIN32
|
8
33
|
struct rusage r;
|
9
34
|
int ret;
|
10
35
|
|
@@ -30,6 +55,7 @@ static VALUE do_rusage_get(int who){
|
|
30
55
|
LONG2NUM(r.ru_nvcsw),
|
31
56
|
LONG2NUM(r.ru_nivcsw)
|
32
57
|
);
|
58
|
+
#endif // _WIN32
|
33
59
|
}
|
34
60
|
|
35
61
|
static VALUE rusage_get(int argc, VALUE* argv, VALUE mod){
|
data/ext/stacks/stacks.c
CHANGED
@@ -33,7 +33,10 @@
|
|
33
33
|
#ifdef __linux__
|
34
34
|
#include <sys/syscall.h>
|
35
35
|
#endif
|
36
|
+
|
37
|
+
#ifndef _WIN32
|
36
38
|
#include <sys/time.h>
|
39
|
+
#endif
|
37
40
|
|
38
41
|
#include "scout_atomics.h"
|
39
42
|
|
@@ -77,7 +80,7 @@ const long INTERVAL = 1000; // 1ms
|
|
77
80
|
|
78
81
|
|
79
82
|
|
80
|
-
#
|
83
|
+
#if defined(RUBY_INTERNAL_EVENT_NEWOBJ) && !defined(_WIN32)
|
81
84
|
|
82
85
|
// Forward Declarations
|
83
86
|
static void init_thread_vars();
|
@@ -77,11 +77,13 @@ module ScoutApm
|
|
77
77
|
|
78
78
|
layer = ScoutApm::Layer.new("Controller", "#{controller_path}/#{action_name}")
|
79
79
|
|
80
|
-
if ScoutApm::Agent.instance.config.value('profile')
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
80
|
+
if ScoutApm::Agent.instance.config.value('profile') && ScoutApm::Instruments::Stacks::ENABLED
|
81
|
+
if defined?(ScoutApm::Instruments::Stacks::INSTALLED) && ScoutApm::Instruments::Stacks::INSTALLED
|
82
|
+
# Capture ScoutProf if we can
|
83
|
+
req.enable_profiled_thread!
|
84
|
+
layer.set_root_class(self.class)
|
85
|
+
layer.traced!
|
86
|
+
end
|
85
87
|
end
|
86
88
|
|
87
89
|
# Start the layer, then execute the user's code
|
data/lib/scout_apm/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scout_apm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.0.
|
4
|
+
version: 3.0.0.pre10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Derek Haynes
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-06-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|
@@ -293,8 +293,34 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
293
293
|
version: 1.3.1
|
294
294
|
requirements: []
|
295
295
|
rubyforge_project: scout_apm
|
296
|
-
rubygems_version: 2.
|
296
|
+
rubygems_version: 2.4.5.2
|
297
297
|
signing_key:
|
298
298
|
specification_version: 4
|
299
299
|
summary: Ruby application performance monitoring
|
300
|
-
test_files:
|
300
|
+
test_files:
|
301
|
+
- test/data/config_test_1.yml
|
302
|
+
- test/test_helper.rb
|
303
|
+
- test/unit/agent_test.rb
|
304
|
+
- test/unit/background_job_integrations/sidekiq_test.rb
|
305
|
+
- test/unit/config_test.rb
|
306
|
+
- test/unit/context_test.rb
|
307
|
+
- test/unit/environment_test.rb
|
308
|
+
- test/unit/git_revision_test.rb
|
309
|
+
- test/unit/histogram_test.rb
|
310
|
+
- test/unit/ignored_uris_test.rb
|
311
|
+
- test/unit/instruments/active_record_instruments_test.rb
|
312
|
+
- test/unit/instruments/net_http_test.rb
|
313
|
+
- test/unit/instruments/percentile_sampler_test.rb
|
314
|
+
- test/unit/layaway_test.rb
|
315
|
+
- test/unit/layer_children_set_test.rb
|
316
|
+
- test/unit/limited_layer_test.rb
|
317
|
+
- test/unit/metric_set_test.rb
|
318
|
+
- test/unit/scored_item_set_test.rb
|
319
|
+
- test/unit/serializers/payload_serializer_test.rb
|
320
|
+
- test/unit/slow_job_policy_test.rb
|
321
|
+
- test/unit/slow_request_policy_test.rb
|
322
|
+
- test/unit/sql_sanitizer_test.rb
|
323
|
+
- test/unit/store_test.rb
|
324
|
+
- test/unit/utils/active_record_metric_name_test.rb
|
325
|
+
- test/unit/utils/backtrace_parser_test.rb
|
326
|
+
- test/unit/utils/numbers_test.rb
|