profiling doesn't require call to enableProfiling
This commit is contained in:
parent
f75d11193a
commit
d6fbc1425f
1 changed files with 1 additions and 0 deletions
|
|
@ -216,6 +216,7 @@ proc enableProfiling*() =
|
|||
system.profilingRequestedHook = requestedHook
|
||||
|
||||
when declared(system.StackTrace):
|
||||
system.profilingRequestedHook = requestedHook
|
||||
system.profilerHook = hook
|
||||
addQuitProc(writeProfile)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue