perftools.rb 0.3.9 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- cmd = "#{File.dirname(__FILE__)}/pprof #{`which ruby`.strip} #{ARGV.join(" ")}"
2
+ require 'rbconfig'
3
+ cmd = "#{File.dirname(__FILE__)}/pprof #{Config::CONFIG['bindir']}/#{Config::CONFIG['ruby_install_name']} #{ARGV.join(" ")}"
3
4
  exec(cmd)
@@ -54,7 +54,7 @@ Dir.chdir('src') do
54
54
  end
55
55
  end
56
56
 
57
- sys("sed -i -e 's,SpinLock,ISpinLock,g' src/*.{cc,h} src/base/*.{cc,h}")
57
+ sys("sed -i -e 's,SpinLock,ISpinLock,g' src/*.cc src/*.h src/base/*.cc src/base/*.h")
58
58
  sys("git commit -am 'rename spinlock'") if ENV['DEV']
59
59
  end
60
60
 
@@ -108,8 +108,8 @@ static VALUE Isend;
108
108
  #endif
109
109
 
110
110
  #ifdef RUBY19
111
- #include <iseq.h>
112
111
  #include <vm_core.h>
112
+ #include <iseq.h>
113
113
 
114
114
  int
115
115
  rb_stack_trace(void** result, int max_depth)
@@ -1,7 +1,7 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
  s.name = 'perftools.rb'
3
- s.version = '0.3.9'
4
- s.date = '2009-11-11'
3
+ s.version = '0.4.0'
4
+ s.date = '2009-11-16'
5
5
  s.rubyforge_project = 'perftools-rb'
6
6
  s.summary = 'google-perftools for ruby code'
7
7
  s.description = 'A sampling profiler for ruby code based on patches to google-perftools'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: perftools.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.9
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aman Gupta
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-11 00:00:00 -08:00
12
+ date: 2009-11-16 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15