summary refs log tree commit diff stats
path: root/lib/system.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-09-15 00:21:10 +0200
committerAraq <rumpf_a@web.de>2012-09-15 00:21:10 +0200
commit214c7a2ebdd15b623dff7e537007c99e66f256cc (patch)
treea37304594d96e841d96be39bf53fd89969a5ac66 /lib/system.nim
parent4a435a8fb4551b03bdcbbbd9b074a51fa46928dd (diff)
downloadNim-214c7a2ebdd15b623dff7e537007c99e66f256cc.tar.gz
implemented a stack trace profiler
Diffstat (limited to 'lib/system.nim')
-rwxr-xr-xlib/system.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 911b134e2..7b129bf46 100755
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -829,7 +829,8 @@ when taintMode:
 else:
   type TaintedString* = string
 
-
+when defined(profiler):
+  proc nimProfile() {.compilerProc, noinline.}
 when hasThreadSupport:
   {.pragma: rtlThreadVar, threadvar.}
 else: