stack_tracy 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +4 -0
- data/VERSION +1 -1
- data/lib/stack_tracy/version.rb +1 -1
- data/stack_tracy.gemspec +1 -1
- data/ui/assets/stack_tracy.js +1 -1
- data/ui/index.html.erb +2 -2
- metadata +1 -1
data/CHANGELOG.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/lib/stack_tracy/version.rb
CHANGED
data/stack_tracy.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
|
|
13
13
|
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
14
14
|
gem.name = "stack_tracy"
|
15
15
|
gem.require_paths = ["lib"]
|
16
|
-
gem.version = "0.1.
|
16
|
+
gem.version = "0.1.2"
|
17
17
|
|
18
18
|
gem.add_dependency "rich_support", "~> 0.1.2"
|
19
19
|
gem.add_dependency "launchy", "2.1.0"
|
data/ui/assets/stack_tracy.js
CHANGED
data/ui/index.html.erb
CHANGED
@@ -48,7 +48,7 @@
|
|
48
48
|
<%
|
49
49
|
skip = excluded_objects.include?(event[:object]) || "#{event[:object]}".match(/^#/)
|
50
50
|
cumulatives[event[:call]] ||= {:duration => 0.0, :count => 0}
|
51
|
-
cumulatives[event[:call]][:duration] += event[:duration]
|
51
|
+
cumulatives[event[:call]][:duration] += event[:duration].to_f
|
52
52
|
cumulatives[event[:call]][:count] += 1
|
53
53
|
cumulatives[event[:call]][:average] = cumulatives[event[:call]][:duration].to_f / cumulatives[event[:call]][:count].to_f
|
54
54
|
corrections.size.times do |i|
|
@@ -68,7 +68,7 @@
|
|
68
68
|
<%= "%.6f" % event[:time] %>
|
69
69
|
</span>
|
70
70
|
<span class="duration">
|
71
|
-
<%= "%.6f" % event[:duration] %>
|
71
|
+
<%= event[:duration] ? ("%.6f" % event[:duration]) : "?" %>
|
72
72
|
</span>
|
73
73
|
<span class="call">
|
74
74
|
<%= " " * (event[:depth] - corrections.size) %>
|