stackprofx 0.2.7 → 0.2.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cbd3a8e7a7a7dde3f91874113ec6cd5eeb5955c1
4
- data.tar.gz: f9d25bff1ee930d20226b7f49ae5e86867a8f65d
3
+ metadata.gz: 5268a99f273f914fdce6760bdd997e2df573fab9
4
+ data.tar.gz: 0322383d93ba46356fa710bfcd0e31f514877e93
5
5
  SHA512:
6
- metadata.gz: 07f7a89bc6a6b9caced764466211211772edcd076709651a3aaa8c40f84eb986da693de96b451082f74f9a2908e611e7f6c70f8377cc23fc716b68ece2d559da
7
- data.tar.gz: c6ad71cd61496d7959116d5a4afa444c2705cf51128e42f41555cea4a31cc09e8264314a4b53a5096118d7e56ab92c6211e482fe2be786cc6f91739ed078a6d0
6
+ metadata.gz: 67d71b512f6d263e353f55bc2fae79f757894819356c59b26619db1732a58436ab5a9fa0b2a003f2a02e13c378c361843aa6930b4cf68f27f8187de0e83fc811
7
+ data.tar.gz: d51ef73516992cff4888078314fe409394c109401538c84801c532ad4b1e39a5522dee5a5d493fae912dbd2a6c7c54526ea00bf725e7a2673372ccb62849b8ba
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stackprofx (0.2.7)
4
+ stackprofx (0.2.8)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/ext/extconf.rb CHANGED
@@ -4,7 +4,8 @@ if have_func('rb_postponed_job_register_one') &&
4
4
  have_func('rb_tracepoint_new') &&
5
5
  have_const('RUBY_INTERNAL_EVENT_NEWOBJ')
6
6
 
7
- $CFLAGS += " -I../../../../ext/ruby_headers/215"
7
+ ext_path = File.expand_path '../ruby_headers/215', __FILE__
8
+ $CFLAGS += " -I#{ext_path}"
8
9
  create_makefile('stackprofx')
9
10
  else
10
11
  fail 'missing API: are you using ruby 2.1+?'
data/ext/stackprofx.c CHANGED
@@ -170,7 +170,11 @@ stackprofx_stop(VALUE self)
170
170
  return Qfalse;
171
171
  _stackprofx.running = 0;
172
172
 
173
- st_free_table(_stackprofx.threads);
173
+ if (_stackprofx.threads)
174
+ {
175
+ st_free_table(_stackprofx.threads);
176
+ _stackprofx.threads = 0;
177
+ }
174
178
 
175
179
  if (_stackprofx.mode == sym_object) {
176
180
  rb_tracepoint_disable(objtracer);
data/stackprofx.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'stackprofx'
3
- s.version = '0.2.7'
4
- s.homepage = 'http://github.com/tmm1/stackprofx'
3
+ s.version = '0.2.9'
4
+ s.homepage = 'https://github.com/glassechidna/stackprofx'
5
5
 
6
6
  s.authors = ['Aman Gupta', 'Aidan Steele']
7
7
  s.email = ['aman@tmm1.net', 'aidan.steele@glassechidna.com.au']
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.extensions = 'ext/extconf.rb'
11
11
 
12
12
  s.summary = 'fork of sampling callstack-profiler for ruby 2.1+'
13
- s.description = 'stackprofx is a hacky derivative of stackprof, the sampling profiler for Ruby 2.+1.'
13
+ s.description = 'stackprofx is a hacky derivative of stackprof, the sampling profiler for Ruby 2.1+.'
14
14
 
15
15
  s.license = 'MIT'
16
16
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stackprofx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aman Gupta
@@ -54,7 +54,7 @@ dependencies:
54
54
  - !ruby/object:Gem::Version
55
55
  version: '5.0'
56
56
  description: stackprofx is a hacky derivative of stackprof, the sampling profiler
57
- for Ruby 2.+1.
57
+ for Ruby 2.1+.
58
58
  email:
59
59
  - aman@tmm1.net
60
60
  - aidan.steele@glassechidna.com.au
@@ -85,7 +85,7 @@ files:
85
85
  - sample.rb
86
86
  - stackprofx.gemspec
87
87
  - test/test_stackprofx.rb
88
- homepage: http://github.com/tmm1/stackprofx
88
+ homepage: https://github.com/glassechidna/stackprofx
89
89
  licenses:
90
90
  - MIT
91
91
  metadata: {}