[llvm-commits] CVS: llvm/lib/Support/Timer.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Mar 21 19:20:54 PST 2005
Changes in directory llvm/lib/Support:
Timer.cpp updated: 1.43 -> 1.44
---
Log message:
Timers SHOULD NOT record the time taken to count the bytes allocated in the heap!
---
Diffs of the changes: (+2 -2)
Timer.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/Support/Timer.cpp
diff -u llvm/lib/Support/Timer.cpp:1.43 llvm/lib/Support/Timer.cpp:1.44
--- llvm/lib/Support/Timer.cpp:1.43 Wed Feb 9 12:41:32 2005
+++ llvm/lib/Support/Timer.cpp Mon Mar 21 21:20:38 2005
@@ -112,11 +112,11 @@
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;
More information about the llvm-commits
mailing list