scout_apm 2.3.0.pre3 → 2.3.0
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 +4 -4
- data/ext/allocations/allocations.c +1 -1
- data/ext/rusage/rusage.c +26 -0
- data/lib/scout_apm/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0824b54fafce0740afe5630ec7a19c9db7ef6b3f
|
4
|
+
data.tar.gz: 1a18d23cbcf0de3d77f850d952b9be7a1f6132e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a45e6fdaf8f8b17c718f10545f0aea3a5c46a5c08d5415a7c17814273d11aa44872a6f1ed1cf96a9ba7a0d39cef27a7c939dd4f9b286737b599e85e6d315518c
|
7
|
+
data.tar.gz: 25ba8d15e6010e4ed95353c969caccfec2593cdd8bad13ec1f0a826e40ff7241f1ed57040de58b33b4efe08693ba0fd89eadbf3781f8d47a166f2edb00cf9e68
|
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/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: 2.3.0
|
4
|
+
version: 2.3.0
|
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-10-
|
12
|
+
date: 2017-10-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|
@@ -338,9 +338,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
338
338
|
version: '0'
|
339
339
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
340
340
|
requirements:
|
341
|
-
- - "
|
341
|
+
- - ">="
|
342
342
|
- !ruby/object:Gem::Version
|
343
|
-
version:
|
343
|
+
version: '0'
|
344
344
|
requirements: []
|
345
345
|
rubyforge_project: scout_apm
|
346
346
|
rubygems_version: 2.4.5.2
|