addQuitProc => addExitProc (#16765)
This commit is contained in:
parent
8f1f0bd1da
commit
18b983d7e3
7 changed files with 21 additions and 12 deletions
|
|
@ -222,8 +222,9 @@ proc enableProfiling*() =
|
|||
system.profilingRequestedHook = requestedHook
|
||||
|
||||
when declared(system.StackTrace):
|
||||
import std/exitprocs
|
||||
system.profilingRequestedHook = requestedHook
|
||||
system.profilerHook = hook
|
||||
addQuitProc(writeProfile)
|
||||
addExitProc(writeProfile)
|
||||
|
||||
{.pop.}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue