diff options
author | Araq <rumpf_a@web.de> | 2012-09-15 00:21:10 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-09-15 00:21:10 +0200 |
commit | 214c7a2ebdd15b623dff7e537007c99e66f256cc (patch) | |
tree | a37304594d96e841d96be39bf53fd89969a5ac66 /lib/system.nim | |
parent | 4a435a8fb4551b03bdcbbbd9b074a51fa46928dd (diff) | |
download | Nim-214c7a2ebdd15b623dff7e537007c99e66f256cc.tar.gz |
implemented a stack trace profiler
Diffstat (limited to 'lib/system.nim')
-rwxr-xr-x | lib/system.nim | 3 |
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: |