class TimeRecord
Declaration
class TimeRecord { /* full declaration omitted */ };
Declared at: llvm/include/llvm/Support/Timer.h:25
Member Variables
- private double WallTime
- Wall clock time elapsed in seconds.
- private double UserTime
- User time elapsed.
- private double SystemTime
- System time elapsed.
- private ssize_t MemUsed
- Memory allocated (in bytes).
- private uint64_t InstructionsExecuted
- Number of instructions executed
Method Overview
- public TimeRecord()
- public static llvm::TimeRecord getCurrentTime(bool Start = true)
- public uint64_t getInstructionsExecuted() const
- 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:40
Parameters
- bool Start = true
¶uint64_t getInstructionsExecuted() const
uint64_t getInstructionsExecuted() const
Declared at: llvm/include/llvm/Support/Timer.h:47
¶ssize_t getMemUsed() const
ssize_t getMemUsed() const
Declared at: llvm/include/llvm/Support/Timer.h:46
¶double getProcessTime() const
double getProcessTime() const
Declared at: llvm/include/llvm/Support/Timer.h:42
¶double getSystemTime() const
double getSystemTime() const
Declared at: llvm/include/llvm/Support/Timer.h:44
¶double getUserTime() const
double getUserTime() const
Declared at: llvm/include/llvm/Support/Timer.h:43
¶double getWallTime() const
double getWallTime() const
Declared at: llvm/include/llvm/Support/Timer.h:45
¶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:71
Parameters
- const llvm::TimeRecord& Total
- llvm::raw_ostream& OS