[LLVMdev] timer mem stats not implemented?

Chris Lattner sabre at nondot.org
Sun Dec 3 13:52:46 PST 2006


On Sun, 3 Dec 2006, Ryan M. Lefever wrote:
> I tried to use the memory tracking features of the LLVM Timer class, and
>  the results were 0 memory used and 0 peak memory.  In particular, I
> called Timer::addPeakMemoryMeasurement() before initializing timers, and
> I called getPeakMem() and getMemUsed().  Are these functions not
> implemented yet?

Try passing -track-memory to the program.  Memory usage tracking is quite 
slow, so it's disabled by default.

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/



More information about the llvm-dev mailing list