flamegraph 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +5 -0
- data/lib/flamegraph.rb +1 -1
- data/lib/flamegraph/renderer.rb +3 -3
- data/lib/flamegraph/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00a8e007306576db9b6d761785ef83a17dafaf42
|
4
|
+
data.tar.gz: 82efe147b7295c832b85ee2ae74ae8e351f1a701
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76a760121a2ebec486d6d1f76b4d5414f8d6bf2d1ff7eb82276fdd375c9324ac546d414f353b6d89f0aebfbe5307b6bb49cba4ba38216aa5dddc8065bd2140c0
|
7
|
+
data.tar.gz: 20e0dee3f38a4860a3cedb1ff0cb836e40519079c85321e5e693c0810467f9b72990e074dd5ef46d05d478b7acb1e43aaf5f5ff94db0d50a336c740b8094c1f7
|
data/CHANGELOG
CHANGED
data/lib/flamegraph.rb
CHANGED
@@ -11,7 +11,7 @@ module Flamegraph
|
|
11
11
|
yield
|
12
12
|
end
|
13
13
|
|
14
|
-
embed_resources = filename && !opts.key?(:embed_resources)
|
14
|
+
embed_resources = (filename && !opts.key?(:embed_resources)) || opts[:embed_resources]
|
15
15
|
|
16
16
|
renderer = Flamegraph::Renderer.new(backtraces)
|
17
17
|
rendered = renderer.graph_html(embed_resources)
|
data/lib/flamegraph/renderer.rb
CHANGED
@@ -12,9 +12,9 @@ class Flamegraph::Renderer
|
|
12
12
|
if embed_resources
|
13
13
|
embed("jquery.min.js","d3.min.js","lodash.min.js")
|
14
14
|
else
|
15
|
-
'<script src="
|
16
|
-
<script src="
|
17
|
-
<script src="
|
15
|
+
'<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
|
16
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.0.8/d3.min.js"></script>
|
17
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.3.1/lodash.min.js"></script>'
|
18
18
|
end
|
19
19
|
|
20
20
|
body.sub!("/**DATA**/", ::JSON.generate(graph_data));
|
data/lib/flamegraph/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flamegraph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Saffron
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fast_stack
|
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
144
|
version: '0'
|
145
145
|
requirements: []
|
146
146
|
rubyforge_project:
|
147
|
-
rubygems_version: 2.0.
|
147
|
+
rubygems_version: 2.0.14
|
148
148
|
signing_key:
|
149
149
|
specification_version: 4
|
150
150
|
summary: Flamegraph support for arbitrary ruby apps
|
@@ -153,4 +153,3 @@ test_files:
|
|
153
153
|
- test/test_helper.rb
|
154
154
|
- test/test_renderer.rb
|
155
155
|
- test/test_sampler.rb
|
156
|
-
has_rdoc:
|