summary refs log tree commit diff stats
path: root/compiler/nimrod.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 /compiler/nimrod.nim
parent4a435a8fb4551b03bdcbbbd9b074a51fa46928dd (diff)
downloadNim-214c7a2ebdd15b623dff7e537007c99e66f256cc.tar.gz
implemented a stack trace profiler
Diffstat (limited to 'compiler/nimrod.nim')
-rwxr-xr-xcompiler/nimrod.nim4
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