[llvm-dev] -mllvm -track-memory precision

George Karpenkov via llvm-dev llvm-dev at lists.llvm.org
Fri Feb 9 14:53:59 PST 2018


Hi,

How reliable are the numbers provided by LLVM timers when -mllvm -track-memory is enabled?
At least on my machine (OS X) they were more than the order of magnitude wrong.
Am I using the feature in the wrong way, or is Process::getMallocUsage() known in general to be unreliable?
If latter is the case, perhaps we should remove the easily accessible option for memory usage?

George


More information about the llvm-dev mailing list