class TimeRecord
Declaration
class TimeRecord { /* full declaration omitted */ };
Declared at: llvm/include/llvm/Support/Timer.h:26
Method Overview
- public TimeRecord()
- public static llvm::TimeRecord getCurrentTime(bool Start = true)
- public ssize_t getMemUsed() const
- public double getProcessTime() const
- public double getSystemTime() const
- public double getUserTime() const
- public double getWallTime() const
- public void print(const llvm::TimeRecord & Total, llvm::raw_ostream & OS) const
Methods
¶TimeRecord()
TimeRecord()
Declared at: llvm/include/llvm/Support/Timer.h:32
¶static llvm::TimeRecord getCurrentTime(
bool Start = true)
static llvm::TimeRecord getCurrentTime(
bool Start = true)
Description
Get the current time and memory usage. If Start is true we get the memory usage before the time, otherwise we get time before memory usage. This matters if the time to get the memory usage is significant and shouldn't be counted as part of a duration.
Declared at: llvm/include/llvm/Support/Timer.h:38
Parameters
- bool Start = true
¶ssize_t getMemUsed() const
ssize_t getMemUsed() const
Declared at: llvm/include/llvm/Support/Timer.h:44
¶double getProcessTime() const
double getProcessTime() const
Declared at: llvm/include/llvm/Support/Timer.h:40
¶double getSystemTime() const
double getSystemTime() const
Declared at: llvm/include/llvm/Support/Timer.h:42
¶double getUserTime() const
double getUserTime() const
Declared at: llvm/include/llvm/Support/Timer.h:41
¶double getWallTime() const
double getWallTime() const
Declared at: llvm/include/llvm/Support/Timer.h:43
¶void print(const llvm::TimeRecord& Total,
llvm::raw_ostream& OS) const
void print(const llvm::TimeRecord& Total,
llvm::raw_ostream& OS) const
Description
Print the current time record to \p OS, with a breakdown showing contributions to the \p Total time record.
Declared at: llvm/include/llvm/Support/Timer.h:66
Parameters
- const llvm::TimeRecord& Total
- llvm::raw_ostream& OS