Timers SHOULD NOT record the time taken to count the bytes allocated in the heap!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20765 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-03-22 03:20:38 +00:00
parent a513fb127f
commit fed1b27d32

View File

@ -112,11 +112,11 @@ static TimeRecord getTimeRecord(bool Start) {
ssize_t MemUsed = 0;
if (Start) {
sys::Process::GetTimeUsage(now,user,sys);
MemUsed = getMemUsage();
sys::Process::GetTimeUsage(now,user,sys);
} else {
MemUsed = getMemUsage();
sys::Process::GetTimeUsage(now,user,sys);
MemUsed = getMemUsage();
}
Result.Elapsed = now.seconds() + now.microseconds() / 1000000.0;