stackprof 0.2.15 → 0.2.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +43 -0
- data/.gitignore +1 -0
- data/CHANGELOG.md +12 -1
- data/README.md +57 -51
- data/Rakefile +21 -25
- data/bin/stackprof +1 -1
- data/ext/stackprof/extconf.rb +6 -0
- data/ext/stackprof/stackprof.c +210 -71
- data/lib/stackprof/report.rb +65 -26
- data/lib/stackprof/truffleruby.rb +37 -0
- data/lib/stackprof.rb +10 -2
- data/stackprof.gemspec +8 -1
- data/test/fixtures/profile.dump +1 -0
- data/test/fixtures/profile.json +1 -0
- data/test/test_report.rb +24 -0
- data/test/test_stackprof.rb +75 -12
- data/test/test_truffleruby.rb +18 -0
- data/vendor/FlameGraph/flamegraph.pl +751 -85
- metadata +16 -10
- data/.travis.yml +0 -21
- data/Dockerfile +0 -21
- data/Gemfile.lock +0 -27
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aman Gupta
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler
|
@@ -63,12 +63,10 @@ extensions:
|
|
63
63
|
- ext/stackprof/extconf.rb
|
64
64
|
extra_rdoc_files: []
|
65
65
|
files:
|
66
|
+
- ".github/workflows/ci.yml"
|
66
67
|
- ".gitignore"
|
67
|
-
- ".travis.yml"
|
68
68
|
- CHANGELOG.md
|
69
|
-
- Dockerfile
|
70
69
|
- Gemfile
|
71
|
-
- Gemfile.lock
|
72
70
|
- LICENSE
|
73
71
|
- README.md
|
74
72
|
- Rakefile
|
@@ -82,11 +80,15 @@ files:
|
|
82
80
|
- lib/stackprof/flamegraph/viewer.html
|
83
81
|
- lib/stackprof/middleware.rb
|
84
82
|
- lib/stackprof/report.rb
|
83
|
+
- lib/stackprof/truffleruby.rb
|
85
84
|
- sample.rb
|
86
85
|
- stackprof.gemspec
|
86
|
+
- test/fixtures/profile.dump
|
87
|
+
- test/fixtures/profile.json
|
87
88
|
- test/test_middleware.rb
|
88
89
|
- test/test_report.rb
|
89
90
|
- test/test_stackprof.rb
|
91
|
+
- test/test_truffleruby.rb
|
90
92
|
- vendor/FlameGraph/README
|
91
93
|
- vendor/FlameGraph/flamegraph.pl
|
92
94
|
- vendor/gprof2dot/gprof2dot.py
|
@@ -94,8 +96,12 @@ files:
|
|
94
96
|
homepage: http://github.com/tmm1/stackprof
|
95
97
|
licenses:
|
96
98
|
- MIT
|
97
|
-
metadata:
|
98
|
-
|
99
|
+
metadata:
|
100
|
+
bug_tracker_uri: https://github.com/tmm1/stackprof/issues
|
101
|
+
changelog_uri: https://github.com/tmm1/stackprof/blob/v0.2.21/CHANGELOG.md
|
102
|
+
documentation_uri: https://www.rubydoc.info/gems/stackprof/0.2.21
|
103
|
+
source_code_uri: https://github.com/tmm1/stackprof/tree/v0.2.21
|
104
|
+
post_install_message:
|
99
105
|
rdoc_options: []
|
100
106
|
require_paths:
|
101
107
|
- lib
|
@@ -110,8 +116,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
116
|
- !ruby/object:Gem::Version
|
111
117
|
version: '0'
|
112
118
|
requirements: []
|
113
|
-
rubygems_version: 3.
|
114
|
-
signing_key:
|
119
|
+
rubygems_version: 3.4.0.dev
|
120
|
+
signing_key:
|
115
121
|
specification_version: 4
|
116
122
|
summary: sampling callstack-profiler for ruby 2.2+
|
117
123
|
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
|