From 214c7a2ebdd15b623dff7e537007c99e66f256cc Mon Sep 17 00:00:00 2001 From: Araq Date: Sat, 15 Sep 2012 00:21:10 +0200 Subject: implemented a stack trace profiler --- lib/system.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/system.nim') 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: -- cgit 1.4.1-2-gfad0