perftools.rb 0.4.8 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/ext/perftools.c +10 -2
  2. data/perftools.rb.gemspec +2 -2
  3. metadata +5 -5
data/ext/perftools.c CHANGED
@@ -309,7 +309,11 @@ unprotect_page(char *addr) {
309
309
  static inline char**
310
310
  uc_get_ip(ucontext_t *uc) {
311
311
  # if defined(__FreeBSD__)
312
- # define program_counter uc_mcontext.mc_rip
312
+ # ifdef __i386__
313
+ # define program_counter uc_mcontext.mc_eip
314
+ # else
315
+ # define program_counter uc_mcontext.mc_rip
316
+ # endif
313
317
  # elif defined(__dietlibc__)
314
318
  # define program_counter uc_mcontext.rip
315
319
  # elif defined(__APPLE__)
@@ -319,7 +323,11 @@ uc_get_ip(ucontext_t *uc) {
319
323
  # define program_counter uc_mcontext->__ss.__eip
320
324
  # endif
321
325
  # else
322
- # define program_counter uc_mcontext.gregs[REG_RIP]
326
+ # ifdef REG_RIP
327
+ # define program_counter uc_mcontext.gregs[REG_RIP]
328
+ # else
329
+ # define program_counter uc_mcontext.gregs[REG_EIP]
330
+ # endif
323
331
  # endif
324
332
  return (char**)&uc->program_counter;
325
333
  }
data/perftools.rb.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
  s.name = 'perftools.rb'
3
- s.version = '0.4.8'
4
- s.date = '2010-08-03'
3
+ s.version = '0.5.0'
4
+ s.date = '2010-08-19'
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,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: perftools.rb
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 4
9
- - 8
10
- version: 0.4.8
8
+ - 5
9
+ - 0
10
+ version: 0.5.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Aman Gupta
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-03 00:00:00 -07:00
18
+ date: 2010-08-19 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies: []
21
21