addQuitProc => addExitProc (#16765)

This commit is contained in:
Timothee Cour 2021-01-22 10:51:11 -08:00 • committed by GitHub
commit 18b983d7e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 21 additions and 12 deletions

View file

@ -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.}