double Elapsed; // Wall clock time elapsed in seconds
double UserTime; // User time elapsed
double SystemTime; // System time elapsed
- size_t MemUsed; // Memory allocated (in bytes)
+ ssize_t MemUsed; // Memory allocated (in bytes)
size_t PeakMem; // Peak memory used
size_t PeakMemBase; // Temporary for peak calculation...
std::string Name; // The name of this time variable
double getProcessTime() const { return UserTime+SystemTime; }
double getWallTime() const { return Elapsed; }
- size_t getMemUsed() const { return MemUsed; }
+ ssize_t getMemUsed() const { return MemUsed; }
size_t getPeakMem() const { return PeakMem; }
std::string getName() const { return Name; }
#include <functional>
#include <iostream>
#include <map>
-
using namespace llvm;
// GetLibSupportInfoOutputFile - Return a file stream to print our output on.
struct TimeRecord {
double Elapsed, UserTime, SystemTime;
- size_t MemUsed;
+ ssize_t MemUsed;
};
static TimeRecord getTimeRecord(bool Start) {
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();