summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2015-12-18 01:50:27 +0100
committerAndreas Rumpf <rumpf_a@web.de>2015-12-18 01:50:27 +0100
commitd6fbc1425f52be6a488dc0652d259ba970f43708 (patch)
tree9b3c8578f057e581529ecb811792c1f7889eeb54
parentf75d11193adbb19d8df2171fd7146744200a9898 (diff)
downloadNim-d6fbc1425f52be6a488dc0652d259ba970f43708.tar.gz
profiling doesn't require call to enableProfiling
-rw-r--r--lib/pure/nimprof.nim1
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)