mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Use size_t instead of long to represent memory usage. long is 32 bits
on 64-bit Windows. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19393 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -36,9 +36,9 @@ class Timer {
|
||||
double Elapsed; // Wall clock time elapsed in seconds
|
||||
double UserTime; // User time elapsed
|
||||
double SystemTime; // System time elapsed
|
||||
long MemUsed; // Memory allocated (in bytes)
|
||||
long PeakMem; // Peak memory used
|
||||
long PeakMemBase; // Temporary for peak calculation...
|
||||
size_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
|
||||
bool Started; // Has this time variable ever been started?
|
||||
TimerGroup *TG; // The TimerGroup this Timer is in.
|
||||
@@ -50,8 +50,8 @@ public:
|
||||
|
||||
double getProcessTime() const { return UserTime+SystemTime; }
|
||||
double getWallTime() const { return Elapsed; }
|
||||
long getMemUsed() const { return MemUsed; }
|
||||
long getPeakMem() const { return PeakMem; }
|
||||
size_t getMemUsed() const { return MemUsed; }
|
||||
size_t getPeakMem() const { return PeakMem; }
|
||||
std::string getName() const { return Name; }
|
||||
|
||||
const Timer &operator=(const Timer &T) {
|
||||
|
Reference in New Issue
Block a user