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

Methods

TimeRecord()

Declared at: llvm/include/llvm/Support/Timer.h:32

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

Declared at: llvm/include/llvm/Support/Timer.h:47

ssize_t getMemUsed() const

Declared at: llvm/include/llvm/Support/Timer.h:46

double getProcessTime() const

Declared at: llvm/include/llvm/Support/Timer.h:42

double getSystemTime() const

Declared at: llvm/include/llvm/Support/Timer.h:44

double getUserTime() const

Declared at: llvm/include/llvm/Support/Timer.h:43

double getWallTime() const

Declared at: llvm/include/llvm/Support/Timer.h:45

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