stackprof 0.2.15 → 0.2.27
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 +4 -4
- data/.github/workflows/ci.yml +43 -0
- data/.gitignore +1 -0
- data/CHANGELOG.md +16 -1
- data/README.md +57 -51
- data/Rakefile +21 -25
- data/bin/stackprof +115 -81
- data/ext/stackprof/extconf.rb +6 -0
- data/ext/stackprof/stackprof.c +335 -85
- data/lib/stackprof/autorun.rb +19 -0
- data/lib/stackprof/report.rb +65 -26
- data/lib/stackprof/truffleruby.rb +37 -0
- data/lib/stackprof.rb +19 -2
- data/stackprof.gemspec +8 -2
- data/test/fixtures/profile.dump +1 -0
- data/test/fixtures/profile.json +1 -0
- data/test/test_middleware.rb +30 -17
- data/test/test_report.rb +25 -1
- data/test/test_stackprof.rb +88 -15
- data/test/test_truffleruby.rb +18 -0
- data/vendor/FlameGraph/flamegraph.pl +751 -85
- metadata +14 -24
- data/.travis.yml +0 -21
- data/Dockerfile +0 -21
- data/Gemfile.lock +0 -27
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: stackprof
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.27
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Aman Gupta
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 2025-01-14 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: rake-compiler
|
|
@@ -24,20 +23,6 @@ dependencies:
|
|
|
24
23
|
- - "~>"
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
25
|
version: '0.9'
|
|
27
|
-
- !ruby/object:Gem::Dependency
|
|
28
|
-
name: mocha
|
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
|
30
|
-
requirements:
|
|
31
|
-
- - "~>"
|
|
32
|
-
- !ruby/object:Gem::Version
|
|
33
|
-
version: '0.14'
|
|
34
|
-
type: :development
|
|
35
|
-
prerelease: false
|
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
-
requirements:
|
|
38
|
-
- - "~>"
|
|
39
|
-
- !ruby/object:Gem::Version
|
|
40
|
-
version: '0.14'
|
|
41
26
|
- !ruby/object:Gem::Dependency
|
|
42
27
|
name: minitest
|
|
43
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -63,12 +48,10 @@ extensions:
|
|
|
63
48
|
- ext/stackprof/extconf.rb
|
|
64
49
|
extra_rdoc_files: []
|
|
65
50
|
files:
|
|
51
|
+
- ".github/workflows/ci.yml"
|
|
66
52
|
- ".gitignore"
|
|
67
|
-
- ".travis.yml"
|
|
68
53
|
- CHANGELOG.md
|
|
69
|
-
- Dockerfile
|
|
70
54
|
- Gemfile
|
|
71
|
-
- Gemfile.lock
|
|
72
55
|
- LICENSE
|
|
73
56
|
- README.md
|
|
74
57
|
- Rakefile
|
|
@@ -78,15 +61,20 @@ files:
|
|
|
78
61
|
- ext/stackprof/extconf.rb
|
|
79
62
|
- ext/stackprof/stackprof.c
|
|
80
63
|
- lib/stackprof.rb
|
|
64
|
+
- lib/stackprof/autorun.rb
|
|
81
65
|
- lib/stackprof/flamegraph/flamegraph.js
|
|
82
66
|
- lib/stackprof/flamegraph/viewer.html
|
|
83
67
|
- lib/stackprof/middleware.rb
|
|
84
68
|
- lib/stackprof/report.rb
|
|
69
|
+
- lib/stackprof/truffleruby.rb
|
|
85
70
|
- sample.rb
|
|
86
71
|
- stackprof.gemspec
|
|
72
|
+
- test/fixtures/profile.dump
|
|
73
|
+
- test/fixtures/profile.json
|
|
87
74
|
- test/test_middleware.rb
|
|
88
75
|
- test/test_report.rb
|
|
89
76
|
- test/test_stackprof.rb
|
|
77
|
+
- test/test_truffleruby.rb
|
|
90
78
|
- vendor/FlameGraph/README
|
|
91
79
|
- vendor/FlameGraph/flamegraph.pl
|
|
92
80
|
- vendor/gprof2dot/gprof2dot.py
|
|
@@ -94,8 +82,11 @@ files:
|
|
|
94
82
|
homepage: http://github.com/tmm1/stackprof
|
|
95
83
|
licenses:
|
|
96
84
|
- MIT
|
|
97
|
-
metadata:
|
|
98
|
-
|
|
85
|
+
metadata:
|
|
86
|
+
bug_tracker_uri: https://github.com/tmm1/stackprof/issues
|
|
87
|
+
changelog_uri: https://github.com/tmm1/stackprof/blob/v0.2.27/CHANGELOG.md
|
|
88
|
+
documentation_uri: https://www.rubydoc.info/gems/stackprof/0.2.27
|
|
89
|
+
source_code_uri: https://github.com/tmm1/stackprof/tree/v0.2.27
|
|
99
90
|
rdoc_options: []
|
|
100
91
|
require_paths:
|
|
101
92
|
- lib
|
|
@@ -110,8 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
110
101
|
- !ruby/object:Gem::Version
|
|
111
102
|
version: '0'
|
|
112
103
|
requirements: []
|
|
113
|
-
rubygems_version: 3.
|
|
114
|
-
signing_key:
|
|
104
|
+
rubygems_version: 3.7.0.dev
|
|
115
105
|
specification_version: 4
|
|
116
106
|
summary: sampling callstack-profiler for ruby 2.2+
|
|
117
107
|
test_files: []
|
data/.travis.yml
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
sudo: required
|
|
2
|
-
|
|
3
|
-
services:
|
|
4
|
-
- docker
|
|
5
|
-
|
|
6
|
-
language: general
|
|
7
|
-
|
|
8
|
-
env:
|
|
9
|
-
matrix:
|
|
10
|
-
- RVM_RUBY_VERSION=2.2
|
|
11
|
-
- RVM_RUBY_VERSION=2.3
|
|
12
|
-
- RVM_RUBY_VERSION=2.4
|
|
13
|
-
- RVM_RUBY_VERSION=2.5
|
|
14
|
-
- RVM_RUBY_VERSION=2.6
|
|
15
|
-
- RVM_RUBY_VERSION=ruby-head
|
|
16
|
-
|
|
17
|
-
before_install:
|
|
18
|
-
- sudo docker build -t stackprof-$RVM_RUBY_VERSION --build-arg=RVM_RUBY_VERSION=$RVM_RUBY_VERSION .
|
|
19
|
-
|
|
20
|
-
script:
|
|
21
|
-
- sudo docker run --name stackprof-$RVM_RUBY_VERSION stackprof-$RVM_RUBY_VERSION
|
data/Dockerfile
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
FROM ubuntu:16.04
|
|
2
|
-
ARG DEBIAN_FRONTEND=noninteractive
|
|
3
|
-
RUN apt-get update -q && \
|
|
4
|
-
apt-get install -qy \
|
|
5
|
-
curl ca-certificates gnupg2 dirmngr build-essential \
|
|
6
|
-
gawk git autoconf automake pkg-config \
|
|
7
|
-
bison libffi-dev libgdbm-dev libncurses5-dev libsqlite3-dev libtool \
|
|
8
|
-
libyaml-dev sqlite3 zlib1g-dev libgmp-dev libreadline-dev libssl-dev \
|
|
9
|
-
ruby --no-install-recommends && \
|
|
10
|
-
apt-get clean
|
|
11
|
-
|
|
12
|
-
RUN gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
|
|
13
|
-
RUN curl -sSL https://get.rvm.io | bash -s
|
|
14
|
-
ARG RVM_RUBY_VERSION=ruby-head
|
|
15
|
-
RUN /bin/bash -l -c "echo $RVM_RUBY_VERSION"
|
|
16
|
-
RUN /bin/bash -l -c ". /etc/profile.d/rvm.sh && rvm install $RVM_RUBY_VERSION --binary || rvm install $RVM_RUBY_VERSION"
|
|
17
|
-
ADD . /stackprof/
|
|
18
|
-
WORKDIR /stackprof/
|
|
19
|
-
RUN /bin/bash -l -c ". /etc/profile.d/rvm.sh && gem install bundler:1.16.0"
|
|
20
|
-
RUN /bin/bash -l -c ". /etc/profile.d/rvm.sh && bundle install"
|
|
21
|
-
CMD /bin/bash -l -c ". /etc/profile.d/rvm.sh && bundle exec rake"
|
data/Gemfile.lock
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
stackprof (0.2.13)
|
|
5
|
-
|
|
6
|
-
GEM
|
|
7
|
-
remote: https://rubygems.org/
|
|
8
|
-
specs:
|
|
9
|
-
metaclass (0.0.4)
|
|
10
|
-
minitest (5.4.1)
|
|
11
|
-
mocha (0.14.0)
|
|
12
|
-
metaclass (~> 0.0.1)
|
|
13
|
-
rake (10.3.2)
|
|
14
|
-
rake-compiler (0.9.3)
|
|
15
|
-
rake
|
|
16
|
-
|
|
17
|
-
PLATFORMS
|
|
18
|
-
ruby
|
|
19
|
-
|
|
20
|
-
DEPENDENCIES
|
|
21
|
-
minitest (~> 5.0)
|
|
22
|
-
mocha (~> 0.14)
|
|
23
|
-
rake-compiler (~> 0.9)
|
|
24
|
-
stackprof!
|
|
25
|
-
|
|
26
|
-
BUNDLED WITH
|
|
27
|
-
1.16.0
|