Loading...
Searching...
No Matches
terra::util::TimerNode Class Reference

Node representing a timed region in the hierarchy. More...

#include <timer.hpp>

Public Member Functions

 TimerNode (const std::string &n, TimerNode *p=nullptr)
 Constructor.
 
void clear_this_and_children ()
 
std::string to_json (int indent=0) const
 Convert this node (and children) to JSON (per-rank)
 
std::string to_agg_json (int indent=0) const
 Convert this node (and children) to JSON with MPI-aggregated statistics.
 

Friends

class TimerTree
 

Detailed Description

Node representing a timed region in the hierarchy.

Note
See class Timer for actually running a timer.

Constructor & Destructor Documentation

◆ TimerNode()

terra::util::TimerNode::TimerNode ( const std::string &  n,
TimerNode p = nullptr 
)
inline

Constructor.

Member Function Documentation

◆ clear_this_and_children()

void terra::util::TimerNode::clear_this_and_children ( )
inline

◆ to_agg_json()

std::string terra::util::TimerNode::to_agg_json ( int  indent = 0) const
inline

Convert this node (and children) to JSON with MPI-aggregated statistics.

◆ to_json()

std::string terra::util::TimerNode::to_json ( int  indent = 0) const
inline

Convert this node (and children) to JSON (per-rank)

Friends And Related Symbol Documentation

◆ TimerTree

friend class TimerTree
friend

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