mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-01-20 17:58:53 +00:00
fix profiler memory leak
This commit is contained in:
parent
a3ae613fff
commit
bb00e3958b
@ -124,6 +124,8 @@ proc handleFutureComplete*[TFutureBase](self: var AsyncProfiler[TFutureBase],
|
||||
self.futureSummaryMetrics.withValue(loc, metric):
|
||||
metric[].addRun(runMetrics)
|
||||
|
||||
self.perFutureMetrics.del(fut.id)
|
||||
|
||||
if not isNil(self.onChange):
|
||||
self.onChange()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user