skylight 0.1.4.alpha2 → 0.1.4.alpha3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/skylight/messages/trace.rb +9 -9
- data/lib/skylight/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: 9a5ac85593bf6bd29d00bc703adb6a05221e7b56
|
4
|
+
data.tar.gz: dd78653688a87fba4196aaa21ef9bfa1d3fc7f14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc86e86e687ad355869ac245dd936eef2949c87c66725d13055927ab4a6a76480170a85200a9a79d45668c1230c647409ec74debe9eb9e738a5ced96b5b6eb67
|
7
|
+
data.tar.gz: 5f79367f90fe5f7c362eaf910fbad90c1be5cd3f483c5c72dbc14e892998ed8bf8481bda9fc6c763ac197dedbabf08734cc7f2d37bc5a2d0c2d640aaff35751d
|
@@ -69,7 +69,7 @@ module Skylight
|
|
69
69
|
def record(time, cat, title = nil, desc = nil, annot = {})
|
70
70
|
return if @busted
|
71
71
|
|
72
|
-
|
72
|
+
time = adjust_for_skew(time)
|
73
73
|
|
74
74
|
sp = span(time, cat, title, desc, annot)
|
75
75
|
|
@@ -84,7 +84,7 @@ module Skylight
|
|
84
84
|
def start(time, cat, title = nil, desc = nil, annot = {})
|
85
85
|
return if @busted
|
86
86
|
|
87
|
-
|
87
|
+
time = adjust_for_skew(time)
|
88
88
|
|
89
89
|
sp = span(time, cat, title, desc, annot)
|
90
90
|
|
@@ -96,7 +96,7 @@ module Skylight
|
|
96
96
|
def stop(time)
|
97
97
|
return if @busted
|
98
98
|
|
99
|
-
|
99
|
+
time = adjust_for_skew(time)
|
100
100
|
|
101
101
|
sp = pop
|
102
102
|
|
@@ -186,15 +186,15 @@ module Skylight
|
|
186
186
|
end
|
187
187
|
end
|
188
188
|
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
"curr=#{time}"
|
189
|
+
# Sadely, we don't have access to a pure monotonic clock in ruby, so we
|
190
|
+
# need to cheat a little.
|
191
|
+
def adjust_for_skew(time)
|
192
|
+
if time <= @last_seen_time
|
193
|
+
return @last_seen_time
|
195
194
|
end
|
196
195
|
|
197
196
|
@last_seen_time = time
|
197
|
+
time
|
198
198
|
end
|
199
199
|
|
200
200
|
end
|
data/lib/skylight/version.rb
CHANGED