LBANN  0.103.0
LivermoreBigArtificialNeuralNetworkToolkit
lbann::ProfRegion Class Reference

RAII class for a prof region. More...

#include <profiling.hpp>

Public Member Functions

 ProfRegion (char const *name, bool sync=false)
 Create a prof region using an automatic color. More...
 
 ProfRegion (char const *name, int color, bool sync=false)
 Create a prof region with an explicit color. More...
 
 ~ProfRegion ()
 

Private Attributes

char const * m_name
 
bool m_sync
 

Detailed Description

RAII class for a prof region.

Definition at line 85 of file profiling.hpp.

Constructor & Destructor Documentation

◆ ProfRegion() [1/2]

lbann::ProfRegion::ProfRegion ( char const *  name,
bool  sync = false 
)

Create a prof region using an automatic color.

◆ ProfRegion() [2/2]

lbann::ProfRegion::ProfRegion ( char const *  name,
int  color,
bool  sync = false 
)

Create a prof region with an explicit color.

◆ ~ProfRegion()

lbann::ProfRegion::~ProfRegion ( )

Member Data Documentation

◆ m_name

char const* lbann::ProfRegion::m_name
private

Definition at line 96 of file profiling.hpp.

◆ m_sync

bool lbann::ProfRegion::m_sync
private

Definition at line 97 of file profiling.hpp.


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