mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-05 12:31:33 +00:00
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:
parent
a513fb127f
commit
fed1b27d32
@ -112,11 +112,11 @@ static TimeRecord getTimeRecord(bool Start) {
|
|||||||
|
|
||||||
ssize_t MemUsed = 0;
|
ssize_t MemUsed = 0;
|
||||||
if (Start) {
|
if (Start) {
|
||||||
sys::Process::GetTimeUsage(now,user,sys);
|
|
||||||
MemUsed = getMemUsage();
|
MemUsed = getMemUsage();
|
||||||
|
sys::Process::GetTimeUsage(now,user,sys);
|
||||||
} else {
|
} else {
|
||||||
MemUsed = getMemUsage();
|
|
||||||
sys::Process::GetTimeUsage(now,user,sys);
|
sys::Process::GetTimeUsage(now,user,sys);
|
||||||
|
MemUsed = getMemUsage();
|
||||||
}
|
}
|
||||||
|
|
||||||
Result.Elapsed = now.seconds() + now.microseconds() / 1000000.0;
|
Result.Elapsed = now.seconds() + now.microseconds() / 1000000.0;
|
||||||
|
Loading…
Reference in New Issue
Block a user