ruby-prof 0.16.1 → 0.16.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES +4 -0
- data/doc/created.rid +2 -2
- data/doc/js/search_index.js.gz +0 -0
- data/ext/ruby_prof/extconf.rb +1 -1
- data/ext/ruby_prof/rp_measure_allocations.c +2 -2
- data/ext/ruby_prof/ruby_prof.h +5 -5
- data/lib/ruby-prof/version.rb +1 -1
- 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: 998f8b9ded9813ff8861c7a4fb23aaf5bd71ce92
|
4
|
+
data.tar.gz: a72b21161e6538935337a6321361449592663a66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61004f65fda9b55bc3eb68ade93060c5ae1d074215c44b94500517ea18704c7b40942d705cdd07b0bdc3a830e8ea3a3ff47af43873057769f8dcc3ecfddf4d38
|
7
|
+
data.tar.gz: 06208b57ce6d33668f5210a5c19869e0e434ab9933ce657b455adea1d8167868439976fbdb76dcf9da157f774c7744af786324405bfe85202475d7b7d6fb07ff
|
data/CHANGES
CHANGED
data/doc/created.rid
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
Thu, 25 Aug 2016 10:46:44 +0200
|
2
2
|
bin/ruby-prof Sat, 02 Jan 2016 16:48:57 +0100
|
3
3
|
bin/ruby-prof-check-trace Sun, 10 Mar 2013 10:57:14 +0100
|
4
4
|
examples/flat.txt Sun, 06 Dec 2015 14:08:42 +0100
|
@@ -24,7 +24,7 @@ lib/ruby-prof/profile.rb Sun, 13 Mar 2016 17:37:58 +0100
|
|
24
24
|
lib/ruby-prof/rack.rb Fri, 17 Jun 2016 20:01:16 +0200
|
25
25
|
lib/ruby-prof/task.rb Tue, 29 Jan 2013 16:43:39 +0100
|
26
26
|
lib/ruby-prof/thread.rb Sun, 13 Mar 2016 17:39:57 +0100
|
27
|
-
lib/ruby-prof/version.rb
|
27
|
+
lib/ruby-prof/version.rb Thu, 25 Aug 2016 10:46:05 +0200
|
28
28
|
lib/unprof.rb Tue, 29 Jan 2013 16:43:39 +0100
|
29
29
|
ext/ruby_prof/ruby_prof.c Sun, 13 Mar 2016 20:27:23 +0100
|
30
30
|
README.rdoc Fri, 17 Jun 2016 20:01:16 +0200
|
data/doc/js/search_index.js.gz
CHANGED
Binary file
|
data/ext/ruby_prof/extconf.rb
CHANGED
@@ -45,7 +45,7 @@ end
|
|
45
45
|
if !windows? && RUBY_PLATFORM !~ /(darwin|openbsd)/
|
46
46
|
$LDFLAGS += " -lrt" # for clock_gettime
|
47
47
|
end
|
48
|
-
add_define("
|
48
|
+
add_define("RUBY_PROF_RUBY_VERSION", RUBY_VERSION.split('.')[0..2].inject(0){|v,d| v*100+d.to_i})
|
49
49
|
|
50
50
|
# for ruby 1.9, determine whether threads inherit trace flags (latest 1.9.2 and later should work correctly)
|
51
51
|
if RUBY_VERSION > "1.9"
|
@@ -14,7 +14,7 @@ static VALUE cMeasureAllocations;
|
|
14
14
|
#if defined(HAVE_RB_GC_STAT)
|
15
15
|
size_t rb_gc_stat(VALUE key);
|
16
16
|
|
17
|
-
#if
|
17
|
+
#if RUBY_PROF_RUBY_VERSION >= 20200
|
18
18
|
#define TOTAL_ALLOCATED_OBJECTS_STRING "total_allocated_objects"
|
19
19
|
#else
|
20
20
|
#define TOTAL_ALLOCATED_OBJECTS_STRING "total_allocated_object"
|
@@ -29,7 +29,7 @@ measure_allocations()
|
|
29
29
|
#define MEASURE_ALLOCATIONS_ENABLED Qtrue
|
30
30
|
return rb_os_allocated_objects();
|
31
31
|
|
32
|
-
#elif defined(HAVE_RB_GC_STAT) &&
|
32
|
+
#elif defined(HAVE_RB_GC_STAT) && RUBY_PROF_RUBY_VERSION >= 20100
|
33
33
|
#define MEASURE_ALLOCATIONS_ENABLED Qtrue
|
34
34
|
static VALUE total_alloc_symbol = 0;
|
35
35
|
if (!total_alloc_symbol) {
|
data/ext/ruby_prof/ruby_prof.h
CHANGED
@@ -7,23 +7,23 @@
|
|
7
7
|
#include <ruby.h>
|
8
8
|
#include <stdio.h>
|
9
9
|
|
10
|
-
#if
|
10
|
+
#if RUBY_PROF_RUBY_VERSION == 10806
|
11
11
|
# error 1.8.6 is not supported. Please upgrade to 1.9.3 or higher.
|
12
12
|
#endif
|
13
13
|
|
14
|
-
#if
|
14
|
+
#if RUBY_PROF_RUBY_VERSION == 10807
|
15
15
|
# error 1.8.7 is not supported. Please upgrade to 1.9.3 or higher.
|
16
16
|
#endif
|
17
17
|
|
18
|
-
#if
|
18
|
+
#if RUBY_PROF_RUBY_VERSION == 10900
|
19
19
|
# error 1.9.0 is not supported. Please upgrade to 1.9.3 or higher.
|
20
20
|
#endif
|
21
21
|
|
22
|
-
#if
|
22
|
+
#if RUBY_PROF_RUBY_VERSION == 10901
|
23
23
|
# error 1.9.1 is not supported. Please upgrade to 1.9.3 or higher.
|
24
24
|
#endif
|
25
25
|
|
26
|
-
#if
|
26
|
+
#if RUBY_PROF_RUBY_VERSION == 10902
|
27
27
|
# error 1.9.2 is not supported. Please upgrade to 1.9.3 or higher.
|
28
28
|
#endif
|
29
29
|
|
data/lib/ruby-prof/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-prof
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.16.
|
4
|
+
version: 0.16.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shugo Maeda, Charlie Savage, Roger Pack, Stefan Kaes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|