profiling doesn't require call to enableProfiling

This commit is contained in:
Andreas Rumpf
2015-12-18 01:50:27 +01:00
parent f75d11193a
commit d6fbc1425f

View File

@@ -216,6 +216,7 @@ proc enableProfiling*() =
system.profilingRequestedHook = requestedHook
when declared(system.StackTrace):
system.profilingRequestedHook = requestedHook
system.profilerHook = hook
addQuitProc(writeProfile)