stack_tracy 0.1.1 → 0.1.2

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.
data/CHANGELOG.rdoc CHANGED
@@ -1,5 +1,9 @@
1
1
  = StackTracy CHANGELOG
2
2
 
3
+ == Version 0.1.2 (August 16, 2012)
4
+
5
+ * Tackling non-calculated durations within ui/index.html.erb
6
+
3
7
  == Version 0.1.1 (August 16, 2012)
4
8
 
5
9
  * Not excluding the last two stack trace events anymore
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -1,7 +1,7 @@
1
1
  module StackTracy #:nodoc:
2
2
  MAJOR = 0
3
3
  MINOR = 1
4
- TINY = 1
4
+ TINY = 2
5
5
 
6
6
  VERSION = [MAJOR, MINOR, TINY].join(".")
7
7
  end
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.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"
@@ -16,7 +16,7 @@ StackTracy = (function() {
16
16
  });
17
17
 
18
18
  return {
19
- version: "0.1.1",
19
+ version: "0.1.2",
20
20
  sort: function(column) {
21
21
  sortation[column] = sortation[column] == "asc" ? "desc" : "asc";
22
22
  $("#cumulatives>.body>div").tsort("span:eq(" + column + ")[abbr]", {
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
  <%= "&nbsp;&nbsp;&nbsp;" * (event[:depth] - corrections.size) %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stack_tracy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: