perftools.rb 0.5.5 → 0.5.6

Sign up to get free protection for your applications and to get access to all the features.
data/ext/extconf.rb CHANGED
@@ -15,10 +15,13 @@ if RUBY_VERSION >= "1.9"
15
15
  begin
16
16
  require "ruby_core_source"
17
17
  rescue LoadError
18
+ require 'rubygems/user_interaction' # for 1.9.1
18
19
  require 'rubygems/dependency_installer'
19
20
  installer = Gem::DependencyInstaller.new
20
21
  installer.install 'ruby_core_source'
22
+
21
23
  Gem.refresh
24
+ Gem.activate('ruby_core_source') # for 1.9.1
22
25
 
23
26
  require "ruby_core_source"
24
27
  end
data/ext/perftools.c CHANGED
@@ -93,7 +93,7 @@ static VALUE Isend;
93
93
  method = frame->last_func;
94
94
  SAVE_FRAME();
95
95
  }
96
- /**/
96
+ */
97
97
 
98
98
  for (; frame && (n = frame->node); frame = frame->prev) {
99
99
  if (frame->prev && frame->prev->last_func) {
@@ -339,7 +339,7 @@ uc_get_ip(ucontext_t *uc) {
339
339
  return (char**)&uc->program_counter;
340
340
  }
341
341
 
342
- #ifdef RB_EVENT_HOOKS_HAVE_CALLBACK_DATA
342
+ #if defined(RB_EVENT_HOOKS_HAVE_CALLBACK_DATA) || defined(RUBY_EVENT_VM)
343
343
  static void
344
344
  event_handler(rb_event_flag_t event, VALUE data, VALUE self, ID id, VALUE klass) {
345
345
  ProfilerRecord(0, NULL, NULL);
@@ -357,7 +357,7 @@ methprofiler_setup()
357
357
  if (bMethProfilerRunning)
358
358
  return Qtrue;
359
359
 
360
- #ifdef RB_EVENT_HOOKS_HAVE_CALLBACK_DATA
360
+ #if defined(RB_EVENT_HOOKS_HAVE_CALLBACK_DATA) || defined(RUBY_EVENT_VM)
361
361
  rb_add_event_hook(event_handler, RUBY_EVENT_CALL|RUBY_EVENT_C_CALL, 0);
362
362
  #else
363
363
  rb_add_event_hook(event_handler, RUBY_EVENT_CALL|RUBY_EVENT_C_CALL);
data/perftools.rb.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
  s.name = 'perftools.rb'
3
- s.version = '0.5.5'
3
+ s.version = '0.5.6'
4
4
  s.date = '2011-01-23'
5
5
  s.rubyforge_project = 'perftools-rb'
6
6
  s.summary = 'google-perftools for ruby code'
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: perftools.rb
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 7
5
+ prerelease:
5
6
  segments:
6
7
  - 0
7
8
  - 5
8
- - 5
9
- version: 0.5.5
9
+ - 6
10
+ version: 0.5.6
10
11
  platform: ruby
11
12
  authors:
12
13
  - Aman Gupta
@@ -41,7 +42,7 @@ files:
41
42
  - patches/perftools-pprof.patch
42
43
  - patches/perftools.patch
43
44
  - perftools.rb.gemspec
44
- has_rdoc: true
45
+ has_rdoc: false
45
46
  homepage: http://github.com/tmm1/perftools.rb
46
47
  licenses: []
47
48
 
@@ -55,6 +56,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
55
56
  requirements:
56
57
  - - ">="
57
58
  - !ruby/object:Gem::Version
59
+ hash: 3
58
60
  segments:
59
61
  - 0
60
62
  version: "0"
@@ -63,13 +65,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
65
  requirements:
64
66
  - - ">="
65
67
  - !ruby/object:Gem::Version
68
+ hash: 3
66
69
  segments:
67
70
  - 0
68
71
  version: "0"
69
72
  requirements: []
70
73
 
71
74
  rubyforge_project: perftools-rb
72
- rubygems_version: 1.3.7
75
+ rubygems_version: 1.4.2
73
76
  signing_key:
74
77
  specification_version: 3
75
78
  summary: google-perftools for ruby code