LLVM API Documentation
#include <Timer.h>
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 |
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.
| TimerGroup::TimerGroup | ( | StringRef | name | ) | [explicit] |
Definition at line 253 of file Timer.cpp.
References TimerGroupList, and TimerLock.
| void TimerGroup::print | ( | raw_ostream & | OS | ) |
| 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().