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 /compiler/nimrod.nim | |
parent | 4a435a8fb4551b03bdcbbbd9b074a51fa46928dd (diff) | |
download | Nim-214c7a2ebdd15b623dff7e537007c99e66f256cc.tar.gz |
implemented a stack trace profiler
Diffstat (limited to 'compiler/nimrod.nim')
-rwxr-xr-x | compiler/nimrod.nim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/nimrod.nim b/compiler/nimrod.nim index 1bd6698a7..0305396da 100755 --- a/compiler/nimrod.nim +++ b/compiler/nimrod.nim @@ -20,6 +20,10 @@ import when hasTinyCBackend: import tccgen +when defined(profiler): + {.hint: "Profiling support is turned on!".} + import nimprof + var arguments: string = "" # the arguments to be passed to the program that # should be run |