diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2015-12-18 01:50:27 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2015-12-18 01:50:27 +0100 |
commit | d6fbc1425f52be6a488dc0652d259ba970f43708 (patch) | |
tree | 9b3c8578f057e581529ecb811792c1f7889eeb54 | |
parent | f75d11193adbb19d8df2171fd7146744200a9898 (diff) | |
download | Nim-d6fbc1425f52be6a488dc0652d259ba970f43708.tar.gz |
profiling doesn't require call to enableProfiling
-rw-r--r-- | lib/pure/nimprof.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pure/nimprof.nim b/lib/pure/nimprof.nim index d1f215bae..e2397b91c 100644 --- a/lib/pure/nimprof.nim +++ b/lib/pure/nimprof.nim @@ -216,6 +216,7 @@ proc enableProfiling*() = system.profilingRequestedHook = requestedHook when declared(system.StackTrace): + system.profilingRequestedHook = requestedHook system.profilerHook = hook addQuitProc(writeProfile) |