diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-29 21:28:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-29 21:28:41 +0000 |
commit | fc86c3cfd6e81113722f17bebc54bc0b63389b58 (patch) | |
tree | 1eb1cec17280701e6a0f392d014417b3246d6413 /include/llvm/Support/Timer.h | |
parent | 8e36a5c960e07555d80fb98d71c692c20f3ea6c4 (diff) | |
download | llvm-fc86c3cfd6e81113722f17bebc54bc0b63389b58.tar.gz llvm-fc86c3cfd6e81113722f17bebc54bc0b63389b58.tar.bz2 llvm-fc86c3cfd6e81113722f17bebc54bc0b63389b58.tar.xz |
remove support for per-time peak memory tracking, this
isn't used by anyone and is better exposed as a non-per-timer
thing. Also, stop including System/Mutex.h in Timer.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99841 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/Timer.h')
-rw-r--r-- | include/llvm/Support/Timer.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/llvm/Support/Timer.h b/include/llvm/Support/Timer.h index f05ede60cb..ecd2e65852 100644 --- a/include/llvm/Support/Timer.h +++ b/include/llvm/Support/Timer.h @@ -16,7 +16,6 @@ #define LLVM_SUPPORT_TIMER_H #include "llvm/System/DataTypes.h" -#include "llvm/System/Mutex.h" #include <string> #include <vector> #include <cassert> @@ -39,8 +38,6 @@ class Timer { double UserTime; // User time elapsed double SystemTime; // System time elapsed ssize_t MemUsed; // Memory allocated (in bytes) - size_t PeakMem; // Peak memory used - size_t PeakMemBase; // Temporary for peak memory 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. @@ -54,7 +51,6 @@ private: double getProcessTime() const { return UserTime+SystemTime; } double getWallTime() const { return Elapsed; } ssize_t getMemUsed() const { return MemUsed; } - size_t getPeakMem() const { return PeakMem; } public: std::string getName() const { return Name; } @@ -77,12 +73,6 @@ public: /// void stopTimer(); - /// addPeakMemoryMeasurement - This method should be called whenever memory - /// usage needs to be checked. It adds a peak memory measurement to the - /// currently active timers, which will be printed when the timer group prints - /// - static void addPeakMemoryMeasurement(); - /// print - Print the current timer to standard error, and reset the "Started" /// flag. void print(const Timer &Total, raw_ostream &OS); |