[llvm-commits] CVS: llvm/lib/Support/Timer.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Jan 28 21:21:29 PST 2005
Changes in directory llvm/lib/Support:
Timer.cpp updated: 1.41 -> 1.42
---
Log message:
Memory used is a delta between memuse at the start of the time and the
memuse at the end, thus it is signed.
---
Diffs of the changes: (+2 -3)
Timer.cpp | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
Index: llvm/lib/Support/Timer.cpp
diff -u llvm/lib/Support/Timer.cpp:1.41 llvm/lib/Support/Timer.cpp:1.42
--- llvm/lib/Support/Timer.cpp:1.41 Sat Jan 8 14:15:57 2005
+++ llvm/lib/Support/Timer.cpp Fri Jan 28 23:21:16 2005
@@ -19,7 +19,6 @@
#include <functional>
#include <iostream>
#include <map>
-
using namespace llvm;
// GetLibSupportInfoOutputFile - Return a file stream to print our output on.
@@ -101,7 +100,7 @@
struct TimeRecord {
double Elapsed, UserTime, SystemTime;
- size_t MemUsed;
+ ssize_t MemUsed;
};
static TimeRecord getTimeRecord(bool Start) {
@@ -111,7 +110,7 @@
sys::TimeValue user(0,0);
sys::TimeValue sys(0,0);
- size_t MemUsed = 0;
+ ssize_t MemUsed = 0;
if (Start) {
sys::Process::GetTimeUsage(now,user,sys);
MemUsed = getMemUsage();
More information about the llvm-commits
mailing list