LLVM API Documentation

Public Member Functions | Static Public Member Functions | Friends
llvm::TimerGroup Class Reference

#include <Timer.h>

List of all members.

Public Member Functions

 TimerGroup (StringRef name)
 ~TimerGroup ()
void setName (StringRef name)
void print (raw_ostream &OS)
 print - Print any started timers in this group and zero them.

Static Public Member Functions

static void printAll (raw_ostream &OS)
 printAll - This static method prints all timers and clears them all out.

Friends

class Timer

Detailed Description

The TimerGroup class is used to group together related timers into a single report that is printed when the TimerGroup is destroyed. It is illegal to destroy a TimerGroup object before all of the Timers in it are gone. A TimerGroup can be specified for a newly created timer in its constructor.

Definition at line 161 of file Timer.h.


Constructor & Destructor Documentation

TimerGroup::TimerGroup ( StringRef  name) [explicit]

Definition at line 253 of file Timer.cpp.

References TimerGroupList, and TimerLock.

Definition at line 265 of file Timer.cpp.

References TimerLock.


Member Function Documentation

print - Print any started timers in this group and zero them.

Definition at line 364 of file Timer.cpp.

References T, and TimerLock.

void TimerGroup::printAll ( raw_ostream OS) [static]

printAll - This static method prints all timers and clears them all out.

Definition at line 384 of file Timer.cpp.

References TimerGroupList, and TimerLock.

void llvm::TimerGroup::setName ( StringRef  name) [inline]

Definition at line 173 of file Timer.h.

References llvm::StringRef::begin(), and llvm::StringRef::end().


Friends And Related Function Documentation

friend class Timer [friend]

Definition at line 182 of file Timer.h.


The documentation for this class was generated from the following files: