Fix nimprof import error when --threads:on.

This commit is contained in:
Nick Greenfield 2014-05-20 17:07:20 -04:00
commit 35e603b89c

View file

@ -60,6 +60,7 @@ when not defined(memProfiler):
else: interval = intervalInUs * 1000 - tickCountCorrection else: interval = intervalInUs * 1000 - tickCountCorrection
when withThreads: when withThreads:
import locks
var var
profilingLock: TLock profilingLock: TLock