stackprofiler 0.0.3 → 0.0.4
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/.gitignore +2 -1
- data/README.md +1 -1
- data/config.ru +3 -2
- data/lib/stackprofiler.rb +0 -1
- data/lib/stackprofiler/filters/build_tree.rb +3 -4
- data/lib/stackprofiler/filters/gem_removal.rb +3 -0
- data/lib/stackprofiler/web_ui.rb +34 -11
- data/lib/stackprofiler/web_ui/public/css/stackprofiler.css +77 -0
- data/lib/stackprofiler/web_ui/public/js/stackprofiler.js +129 -58
- data/lib/stackprofiler/web_ui/public/vendor/ace/ace.js +18298 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/ext-beautify.js +334 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/ext-chromevox.js +541 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/ext-elastic_tabstops_lite.js +275 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/ext-emmet.js +1190 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/ext-error_marker.js +6 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/ext-keybinding_menu.js +170 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/ext-language_tools.js +1934 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/ext-linking.js +52 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/ext-modelist.js +187 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/ext-old_ie.js +494 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/ext-searchbox.js +409 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/ext-settings_menu.js +637 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/ext-spellcheck.js +71 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/ext-split.js +246 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/ext-static_highlight.js +154 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/ext-statusbar.js +51 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/ext-textarea.js +632 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/ext-themelist.js +58 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/ext-whitespace.js +181 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/keybinding-emacs.js +1182 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/keybinding-vim.js +5320 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/mode-haml.js +525 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/mode-html.js +2427 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/mode-html_ruby.js +2955 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/mode-javascript.js +1025 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/mode-json.js +668 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/mode-ruby.js +839 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/mode-xml.js +637 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/mode-yaml.js +256 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/theme-xcode.js +89 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/worker-coffee.js +7599 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/worker-css.js +8682 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/worker-html.js +11527 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/worker-javascript.js +10429 -0
- data/lib/stackprofiler/web_ui/public/vendor/ace/worker-json.js +2319 -0
- data/lib/stackprofiler/web_ui/views/index.erb +1 -1
- data/lib/stackprofiler/web_ui/views/layout.erb +2 -55
- data/stackprofiler.gemspec +2 -4
- metadata +42 -19
- data/lib/stackprofiler/web_ui/views/code.erb +0 -17
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
<link rel="stylesheet" href="/vendor/tokenfield/bootstrap-tokenfield.min.css" />
|
|
9
9
|
<link rel="stylesheet" href="/vendor/jquery-ui/jquery-ui.min.css" />
|
|
10
10
|
<link rel="stylesheet" href="/vendor/epoch/epoch.min.css" />
|
|
11
|
+
<link rel="stylesheet" href="/css/stackprofiler.css" />
|
|
11
12
|
<script src="/vendor/js/jquery.min.js"></script>
|
|
12
13
|
<script src="/vendor/js/bootstrap.min.js"></script>
|
|
13
14
|
<script src="/vendor/jstree/jstree.js"></script>
|
|
@@ -17,62 +18,8 @@
|
|
|
17
18
|
<script src="/vendor/d3/d3.min.js"></script>
|
|
18
19
|
<script src="/vendor/epoch/epoch.min.js"></script>
|
|
19
20
|
<script src="/vendor/lodash/lodash.min.js"></script>
|
|
21
|
+
<script src="/vendor/ace/ace.js"></script>
|
|
20
22
|
<%= yield_content :head %>
|
|
21
|
-
<style>
|
|
22
|
-
body, html {
|
|
23
|
-
height: 100%;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.fill {
|
|
27
|
-
top: 67px;
|
|
28
|
-
left: 0;
|
|
29
|
-
right: 0;
|
|
30
|
-
bottom: 0;
|
|
31
|
-
position: absolute;
|
|
32
|
-
width: auto;
|
|
33
|
-
height: auto;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
#github-link {
|
|
37
|
-
margin-top: -6px;
|
|
38
|
-
margin-bottom: -6px;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
#foo {
|
|
42
|
-
height: 100%;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.jstree-default a {
|
|
46
|
-
white-space:normal !important; height: auto;
|
|
47
|
-
}
|
|
48
|
-
.jstree-anchor {
|
|
49
|
-
height: auto !important;
|
|
50
|
-
}
|
|
51
|
-
.jstree-default li > ins {
|
|
52
|
-
vertical-align:top;
|
|
53
|
-
}
|
|
54
|
-
.jstree-leaf {
|
|
55
|
-
height: auto;
|
|
56
|
-
}
|
|
57
|
-
.jstree-leaf a{
|
|
58
|
-
height: auto !important;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.ui-autocomplete {
|
|
62
|
-
z-index: 5000;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.color-box {
|
|
66
|
-
width: 10px;
|
|
67
|
-
height: 10px;
|
|
68
|
-
display: inline-block;
|
|
69
|
-
background-color: #ccc;
|
|
70
|
-
margin-right: 10px;
|
|
71
|
-
/*position: absolute;*/
|
|
72
|
-
/*left: 5px;*/
|
|
73
|
-
/*top: 5px;*/
|
|
74
|
-
}
|
|
75
|
-
</style>
|
|
76
23
|
</head>
|
|
77
24
|
<body>
|
|
78
25
|
<div class="navbar navbar-default">
|
data/stackprofiler.gemspec
CHANGED
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |spec|
|
|
4
4
|
spec.name = 'stackprofiler'
|
|
5
|
-
spec.version = '0.0.
|
|
5
|
+
spec.version = '0.0.4'
|
|
6
6
|
spec.authors = ['Aidan Steele']
|
|
7
7
|
spec.email = ['aidan.steele@glassechidna.com.au']
|
|
8
8
|
spec.summary = %q{Web UI wrapper for the awesome stackprof profiler.}
|
|
9
|
-
# spec.description = %q{TODO: Write a longer description. Optional.}
|
|
10
9
|
spec.homepage = ''
|
|
11
10
|
spec.license = 'MIT'
|
|
12
11
|
|
|
@@ -29,9 +28,8 @@ Gem::Specification.new do |spec|
|
|
|
29
28
|
|
|
30
29
|
spec.add_dependency 'method_source'
|
|
31
30
|
spec.add_dependency 'activesupport'
|
|
32
|
-
spec.add_dependency 'rubytree', '>= 0.9.
|
|
31
|
+
spec.add_dependency 'rubytree', '>= 0.9.5pre6'
|
|
33
32
|
spec.add_dependency 'sinatra'
|
|
34
33
|
spec.add_dependency 'sinatra-contrib'
|
|
35
|
-
spec.add_dependency 'coderay'
|
|
36
34
|
spec.add_dependency 'oj'
|
|
37
35
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: stackprofiler
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Aidan Steele
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-01-
|
|
11
|
+
date: 2015-01-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -198,14 +198,14 @@ dependencies:
|
|
|
198
198
|
requirements:
|
|
199
199
|
- - ">="
|
|
200
200
|
- !ruby/object:Gem::Version
|
|
201
|
-
version: 0.9.
|
|
201
|
+
version: 0.9.5pre6
|
|
202
202
|
type: :runtime
|
|
203
203
|
prerelease: false
|
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
|
205
205
|
requirements:
|
|
206
206
|
- - ">="
|
|
207
207
|
- !ruby/object:Gem::Version
|
|
208
|
-
version: 0.9.
|
|
208
|
+
version: 0.9.5pre6
|
|
209
209
|
- !ruby/object:Gem::Dependency
|
|
210
210
|
name: sinatra
|
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -234,20 +234,6 @@ dependencies:
|
|
|
234
234
|
- - ">="
|
|
235
235
|
- !ruby/object:Gem::Version
|
|
236
236
|
version: '0'
|
|
237
|
-
- !ruby/object:Gem::Dependency
|
|
238
|
-
name: coderay
|
|
239
|
-
requirement: !ruby/object:Gem::Requirement
|
|
240
|
-
requirements:
|
|
241
|
-
- - ">="
|
|
242
|
-
- !ruby/object:Gem::Version
|
|
243
|
-
version: '0'
|
|
244
|
-
type: :runtime
|
|
245
|
-
prerelease: false
|
|
246
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
247
|
-
requirements:
|
|
248
|
-
- - ">="
|
|
249
|
-
- !ruby/object:Gem::Version
|
|
250
|
-
version: '0'
|
|
251
237
|
- !ruby/object:Gem::Dependency
|
|
252
238
|
name: oj
|
|
253
239
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -290,7 +276,45 @@ files:
|
|
|
290
276
|
- lib/stackprofiler/run_data_source.rb
|
|
291
277
|
- lib/stackprofiler/utils.rb
|
|
292
278
|
- lib/stackprofiler/web_ui.rb
|
|
279
|
+
- lib/stackprofiler/web_ui/public/css/stackprofiler.css
|
|
293
280
|
- lib/stackprofiler/web_ui/public/js/stackprofiler.js
|
|
281
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/.DS_Store
|
|
282
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/ace.js
|
|
283
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/ext-beautify.js
|
|
284
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/ext-chromevox.js
|
|
285
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/ext-elastic_tabstops_lite.js
|
|
286
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/ext-emmet.js
|
|
287
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/ext-error_marker.js
|
|
288
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/ext-keybinding_menu.js
|
|
289
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/ext-language_tools.js
|
|
290
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/ext-linking.js
|
|
291
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/ext-modelist.js
|
|
292
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/ext-old_ie.js
|
|
293
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/ext-searchbox.js
|
|
294
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/ext-settings_menu.js
|
|
295
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/ext-spellcheck.js
|
|
296
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/ext-split.js
|
|
297
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/ext-static_highlight.js
|
|
298
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/ext-statusbar.js
|
|
299
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/ext-textarea.js
|
|
300
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/ext-themelist.js
|
|
301
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/ext-whitespace.js
|
|
302
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/keybinding-emacs.js
|
|
303
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/keybinding-vim.js
|
|
304
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/mode-haml.js
|
|
305
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/mode-html.js
|
|
306
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/mode-html_ruby.js
|
|
307
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/mode-javascript.js
|
|
308
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/mode-json.js
|
|
309
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/mode-ruby.js
|
|
310
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/mode-xml.js
|
|
311
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/mode-yaml.js
|
|
312
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/theme-xcode.js
|
|
313
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/worker-coffee.js
|
|
314
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/worker-css.js
|
|
315
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/worker-html.js
|
|
316
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/worker-javascript.js
|
|
317
|
+
- lib/stackprofiler/web_ui/public/vendor/ace/worker-json.js
|
|
294
318
|
- lib/stackprofiler/web_ui/public/vendor/css/bootstrap-theme.css
|
|
295
319
|
- lib/stackprofiler/web_ui/public/vendor/css/bootstrap-theme.css.map
|
|
296
320
|
- lib/stackprofiler/web_ui/public/vendor/css/bootstrap-theme.min.css
|
|
@@ -340,7 +364,6 @@ files:
|
|
|
340
364
|
- lib/stackprofiler/web_ui/public/vendor/tokenfield/.DS_Store
|
|
341
365
|
- lib/stackprofiler/web_ui/public/vendor/tokenfield/bootstrap-tokenfield.min.css
|
|
342
366
|
- lib/stackprofiler/web_ui/public/vendor/tokenfield/bootstrap-tokenfield.min.js
|
|
343
|
-
- lib/stackprofiler/web_ui/views/code.erb
|
|
344
367
|
- lib/stackprofiler/web_ui/views/index.erb
|
|
345
368
|
- lib/stackprofiler/web_ui/views/layout.erb
|
|
346
369
|
- stackprofiler.gemspec
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<h4><%= "#{@file}:#{@first_line}" %></h4>
|
|
2
|
-
|
|
3
|
-
<table class="table table-striped table-condensed" style="font-family: monospace;">
|
|
4
|
-
<tr>
|
|
5
|
-
<td>
|
|
6
|
-
<pre>
|
|
7
|
-
<% @output.each do |line| %><%= line[:samples] %>
|
|
8
|
-
<% end %>
|
|
9
|
-
</pre>
|
|
10
|
-
</td>
|
|
11
|
-
<td>
|
|
12
|
-
<pre>
|
|
13
|
-
<% @output.each do |line| %><%= line[:code] %><% end %>
|
|
14
|
-
</pre>
|
|
15
|
-
</td>
|
|
16
|
-
</tr>
|
|
17
|
-
</table>
|