stackprof 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8cdda351beb1c3d9ec3ea54b3b5ba337c7fee2b4
4
- data.tar.gz: 723685a77ea3e6353415f450b01482a02a9cb2c5
3
+ metadata.gz: ccd65300839e0302d1ce83344815ab9ceb5bf00c
4
+ data.tar.gz: 693f5630f930e10ae29e0b2eb906749a379fb326
5
5
  SHA512:
6
- metadata.gz: cc644c9cff62e83ecb6f38e714b204780d5ca47e16293c9265eff6acbc2a242722ba035b135b9f2557fab9bc8c969f1a2a31ff8e02d9bbd45b2f62466e2949f4
7
- data.tar.gz: 29d719e15d94559440af70bb0e02eafcad996cfeee37890377cd834cb81e01373378618c4aba60e727a81b5dffcf7511e37e35c0b5aae54cecdcf82a936017c8
6
+ metadata.gz: ad05091d5ee959c900b12d3bf659b021a51082e99bea2e52d99a35ec2c7b55363a32673f6a9cdc952074e021ff61066c83a43381c5b4d64e41345b2e0bee2853
7
+ data.tar.gz: f2dad38ea0bdb1bcb4ad52df7ae3997e8e7e40689eee14f62a255cac1a8449dce032cfb06fee6e522b3d5bbf3dfd971ce5cdcba4d6411237b3e0af4a410b4f3c
@@ -529,7 +529,7 @@ Init_stackprof(void)
529
529
  S(aggregate);
530
530
  #undef S
531
531
 
532
- gc_hook = Data_Wrap_Struct(rb_cObject, stackprof_gc_mark, NULL, NULL);
532
+ gc_hook = Data_Wrap_Struct(rb_cObject, stackprof_gc_mark, NULL, &_stackprof);
533
533
  rb_global_variable(&gc_hook);
534
534
 
535
535
  rb_mStackProf = rb_define_module("StackProf");
@@ -9,7 +9,7 @@ module StackProf
9
9
  attr_reader :data
10
10
 
11
11
  def frames(sort_by_total=false)
12
- Hash[ *@data[:frames].sort_by{ |iseq, stats| -stats[sort_by_total ? :total_samples : :samples] }.flatten(1) ]
12
+ @data[:frames].sort_by{ |iseq, stats| -stats[sort_by_total ? :total_samples : :samples] }.inject({}){|h, (k, v)| h[k] = v; h}
13
13
  end
14
14
 
15
15
  def normalized_frames
@@ -256,7 +256,7 @@ module StackProf
256
256
  end
257
257
 
258
258
  def print_method(name, f = STDOUT)
259
- name = /#{Regexp.escape name}/ unless Regexp === name
259
+ name = /#{name}/ unless Regexp === name
260
260
  frames.each do |frame, info|
261
261
  next unless info[:name] =~ name
262
262
  file, line = info.values_at(:file, :line)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'stackprof'
3
- s.version = '0.2.8'
3
+ s.version = '0.2.9'
4
4
  s.homepage = 'http://github.com/tmm1/stackprof'
5
5
 
6
6
  s.authors = 'Aman Gupta'
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stackprof
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aman Gupta
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-14 00:00:00.000000000 Z
11
+ date: 2016-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0.9'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.9'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mocha
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0.14'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0.14'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: '5.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: '5.0'
55
55
  description: stackprof is a fast sampling profiler for ruby code, with cpu, wallclock
@@ -63,7 +63,7 @@ extensions:
63
63
  - ext/extconf.rb
64
64
  extra_rdoc_files: []
65
65
  files:
66
- - ".gitignore"
66
+ - .gitignore
67
67
  - Gemfile
68
68
  - Gemfile.lock
69
69
  - LICENSE
@@ -97,18 +97,19 @@ require_paths:
97
97
  - lib
98
98
  required_ruby_version: !ruby/object:Gem::Requirement
99
99
  requirements:
100
- - - ">="
100
+ - - '>='
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0'
103
103
  required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  requirements:
105
- - - ">="
105
+ - - '>='
106
106
  - !ruby/object:Gem::Version
107
107
  version: '0'
108
108
  requirements: []
109
109
  rubyforge_project:
110
- rubygems_version: 2.2.3
110
+ rubygems_version: 2.0.14.1
111
111
  signing_key:
112
112
  specification_version: 4
113
113
  summary: sampling callstack-profiler for ruby 2.1+
114
114
  test_files: []
115
+ has_rdoc: