#include <TimingTree.h>
|
| TimingTree () |
| Creates and initialises the timing structure.
|
|
| TimingTree (const TimingTree &tt) |
|
TimingTree< TP > & | operator= (const TimingTree< TP > &tt) |
|
void | swap (TimingTree< TP > &tt) |
|
void | start (const std::string &name) |
| Starts a timer beneath the current hierarchy level.
|
|
void | stop (const std::string &name) |
| Stops the last started timer and jumps back one hierarchy level.
|
|
bool | isTimerRunning (const std::string &name) const |
| Checks if specified timer is currently running.
|
|
void | reset () |
| Resets the the timing hierarchy.
|
|
TimingTree< TP > | getReduced (ReduceType rt=REDUCE_TOTAL, int targetRank=0, bool callSynchronize=true) const |
| Collects all the timing data from different processes.
|
|
void | synchronize () |
| Adds entries which only exist on other processes. Has to be collectively called on all processes!
|
|
const TimingNode< TP > & | getRawData () const |
| Returns the raw tree data structure.
|
|
const Timer< TP > & | operator[] (const std::string &name) const |
| Finds the specified timer in the timing hierarchy.
|
|
bool | timerExists (const std::string &n) const |
| Checks if the specified timer exists in the timing hierarchy.
|
|
std::string | getCurrentTimerName () const |
| Returns the name of the currently running timer Might be expensive due to value search.
|
|
TimingTree< TP > | getCopyWithRemainder () const |
| Returns a copy of the timing tree containing the remaining time as a subnode.
|
|
|
(Note that these are not member symbols.)
|
template<typename TP > |
void | to_json (nlohmann::json &j, const TimingTree< TP > &tt) |
| Converts a TimingTree to json.
|
|
template<typename TP > |
std::ostream & | operator<< (std::ostream &os, const TimingTree< TP > &tt) |
|
◆ TimingTree() [1/2]
Creates and initialises the timing structure.
◆ TimingTree() [2/2]
◆ getCopyWithRemainder()
Returns a copy of the timing tree containing the remaining time as a subnode.
◆ getCurrentTimerName()
Returns the name of the currently running timer Might be expensive due to value search.
◆ getRawData()
Returns the raw tree data structure.
◆ getReduced()
Collects all the timing data from different processes.
- Parameters
-
rt | type of reduction used |
targetRank | |
callSynchronize | call synchronize() before doing the reduction |
- Returns
- Attention
- Setting callSynchronize to false can lead to deadlocks during reduction if different ranks have different timing nodes! Setting it to true causes an additional communication.
◆ isTimerRunning()
Checks if specified timer is currently running.
◆ operator=()
◆ operator[]()
Finds the specified timer in the timing hierarchy.
- Parameters
-
name | timer name which may include more than one hierarchy separated by "." tt["firstLevel.secondLevel.thirdLevel.timerName"].total();
|
◆ reset()
Resets the the timing hierarchy.
◆ start()
Starts a timer beneath the current hierarchy level.
- Parameters
-
name | timer name. '.' is not allowed in the timer name! |
◆ stop()
Stops the last started timer and jumps back one hierarchy level.
◆ swap()
◆ synchronize()
Adds entries which only exist on other processes. Has to be collectively called on all processes!
◆ timerExists()
Checks if the specified timer exists in the timing hierarchy.
- Parameters
-
name | timer name which may include more than one hierarchy separated by "." tt.timerExists("firstLevel.secondLevel.thirdLevel.timerName");
|
◆ operator<<()
template<typename TP >
std::ostream & operator<< |
( |
std::ostream & | os, |
|
|
const TimingTree< TP > & | tt ) |
|
related |
◆ to_json()
template<typename TP >
void to_json |
( |
nlohmann::json & | j, |
|
|
const TimingTree< TP > & | tt ) |
|
related |
Converts a TimingTree to json.
The signature is required by the json library
◆ current_
Pointer to the current hierarchy level.
◆ root_
The documentation for this class was generated from the following files:
- /builds/administration/walberla-website/walberla/src/core/timing/TimingTree.h
- /builds/administration/walberla-website/walberla/src/core/timing/TimingJSON.h