diff options
author | Araq <rumpf_a@web.de> | 2014-02-10 17:12:25 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-02-10 17:12:25 +0100 |
commit | 007d17ce3f28dda72f26df4298bba438f76edd15 (patch) | |
tree | 854820cfacb1b37ed2cb17986c7d8f05846008fd /lib/pure/nimprof.nim | |
parent | 5d939570488706553bdb3dc58d7902e454cd6de4 (diff) | |
download | Nim-007d17ce3f28dda72f26df4298bba438f76edd15.tar.gz |
more things case consistent
Diffstat (limited to 'lib/pure/nimprof.nim')
-rw-r--r-- | lib/pure/nimprof.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/nimprof.nim b/lib/pure/nimprof.nim index 02f0366cd..3d0cc2154 100644 --- a/lib/pure/nimprof.nim +++ b/lib/pure/nimprof.nim @@ -67,7 +67,7 @@ when withThreads: proc hookAux(st: TStackTrace, costs: int) = # this is quite performance sensitive! - when withThreads: Acquire profilingLock + when withThreads: acquire profilingLock inc totalCalls var last = high(st) while last > 0 and isNil(st[last]): dec last @@ -106,7 +106,7 @@ proc hookAux(st: TStackTrace, costs: int) = h = ((5 * h) + 1) and high(profileData) inc chain maxChainLen = max(maxChainLen, chain) - when withThreads: Release profilingLock + when withThreads: release profilingLock when defined(memProfiler): const |