flamegraph 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flamegraph.rb +1 -1
- data/lib/flamegraph/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c3fbf342a438e4ce5871d8baa3db641e4e3fd7e
|
4
|
+
data.tar.gz: 33a97dbacd76dd2f7a3cc704d385e22b90e22e3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ef50d13d58500bc953a4341d3ba59aaf81e0a5af2845bb758150b75d707c05cf2f59ca65ddfde4f98510a3cf6b30d8d3230444a013176885a4438a6bc20606b
|
7
|
+
data.tar.gz: 28e713024516ba5f8abbbf6418f361b250a3229a83a3f03a10f4ced42e70f80de0b8a1a1b06019374c8fcc986f3eabdb8f70fae2b879a7de468d25556de15341
|
data/lib/flamegraph.rb
CHANGED
@@ -3,7 +3,6 @@ require "json"
|
|
3
3
|
if RUBY_VERSION >= "2.1.0".freeze
|
4
4
|
begin
|
5
5
|
require "stackprof"
|
6
|
-
require "flamegraph/stackprof_sampler"
|
7
6
|
rescue
|
8
7
|
STDERR.puts "Please require the stackprof gem falling back to fast_stack"
|
9
8
|
require "fast_stack"
|
@@ -25,6 +24,7 @@ module Flamegraph
|
|
25
24
|
|
26
25
|
backtraces =
|
27
26
|
if defined? StackProf
|
27
|
+
require "flamegraph/stackprof_sampler" unless defined? StackProfSampler
|
28
28
|
StackProfSampler.collect(fidelity) do
|
29
29
|
yield
|
30
30
|
end
|
data/lib/flamegraph/version.rb
CHANGED