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/ropes.nim | |
parent | 4a435a8fb4551b03bdcbbbd9b074a51fa46928dd (diff) | |
download | Nim-214c7a2ebdd15b623dff7e537007c99e66f256cc.tar.gz |
implemented a stack trace profiler
Diffstat (limited to 'compiler/ropes.nim')
-rwxr-xr-x | compiler/ropes.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/ropes.nim b/compiler/ropes.nim index 0107f5241..50c89e4d9 100755 --- a/compiler/ropes.nim +++ b/compiler/ropes.nim @@ -294,6 +294,7 @@ proc crcFromRopeAux(r: PRope, startVal: TCrc32): TCrc32 = result = crcFromRopeAux(r.right, result) proc newCrcFromRopeAux(r: PRope, startVal: TCrc32): TCrc32 = + # XXX profiling shows this is actually expensive var stack: TRopeSeq = @[r] result = startVal while len(stack) > 0: |