mirror of
https://github.com/logos-storage/nim-chronos.git
synced 2026-01-03 22:13:06 +00:00
enable future ID; add extra debug info
This commit is contained in:
parent
9883d7dd8a
commit
3f774a1fa4
@ -118,7 +118,7 @@ proc futurePaused(self: var ProfilerMetrics, event: Event): void =
|
||||
metrics.state = Paused
|
||||
|
||||
proc futureCompleted(self: var ProfilerMetrics, event: Event): void =
|
||||
assert self.partials.hasKey(event.futureId)
|
||||
assert self.partials.hasKey(event.futureId), $event.location
|
||||
|
||||
self.partials.withValue(event.futureId, metrics):
|
||||
if metrics.state == Running:
|
||||
|
||||
@ -10,3 +10,4 @@ switch("define", "nimRawSetjmp")
|
||||
|
||||
## REMOVE BEFORE MERGE!
|
||||
--d:chronosProfiling
|
||||
--d:chronosFutureId
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user