|
LLVM
4.0.0
|
The TimerGroup class is used to group together related timers into a single report that is printed when the TimerGroup is destroyed. More...
#include <Timer.h>
Public Member Functions | |
| TimerGroup (StringRef Name, StringRef Description) | |
| ~TimerGroup () | |
| void | setName (StringRef NewName, StringRef NewDescription) |
| void | print (raw_ostream &OS) |
| Print any started timers in this group and zero them. More... | |
Static Public Member Functions | |
| static void | printAll (raw_ostream &OS) |
| This static method prints all timers and clears them all out. More... | |
| static void | ConstructTimerLists () |
| Ensure global timer group lists are initialized. More... | |
Friends | |
| class | Timer |
| void | PrintStatisticsJSON (raw_ostream &OS) |
| Print statistics in JSON format. More... | |
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 233 of file Timer.cpp.
References L, TimerGroupList, and TimerLock.
|
static |
Ensure global timer group lists are initialized.
This function is mostly used by the Statistic code to influence the construction and destruction order of the global timer lists.
Definition at line 402 of file Timer.cpp.
References NamedGroupedTimers.
| void TimerGroup::print | ( | raw_ostream & | OS | ) |
|
static |
This static method prints all timers and clears them all out.
Definition at line 364 of file Timer.cpp.
References L, TimerGroupList, and TimerLock.
Definition at line 199 of file Timer.h.
References llvm::StringRef::begin(), and llvm::StringRef::end().
|
friend |
Print statistics in JSON format.
This does include all global timers (
1.8.6