PeTar
N-body code for collisional gravitational systems
Tprofile Struct Reference

#include <profile.hpp>

Public Member Functions

 Tprofile (const char *_name)
 
void start ()
 
void barrier ()
 
void end ()
 
void print (std::ostream &fout, const PS::S32 divider=1)
 
void dump (std::ostream &fout, const PS::S32 divider=1, const PS::S32 width=PROFILE_PRINT_WIDTH) const
 
void dumpBarrier (std::ostream &fout, const PS::S32 divider=1, const PS::S32 width=PROFILE_PRINT_WIDTH) const
 
PS::F64 getMax ()
 
PS::F64 getMin ()
 
void dumpName (std::ostream &fout, const PS::S32 width=PROFILE_PRINT_WIDTH) const
 
void dumpBarrierName (std::ostream &fout, const PS::S32 width=PROFILE_PRINT_WIDTH) const
 
void reset ()
 

Public Attributes

PS::F64 time
 
PS::F64 tbar
 
const char * name
 

Constructor & Destructor Documentation

◆ Tprofile()

Tprofile::Tprofile ( const char *  _name)
inline

Member Function Documentation

◆ barrier()

void Tprofile::barrier ( )
inline

◆ dump()

void Tprofile::dump ( std::ostream &  fout,
const PS::S32  divider = 1,
const PS::S32  width = PROFILE_PRINT_WIDTH 
) const
inline
Here is the caller graph for this function:

◆ dumpBarrier()

void Tprofile::dumpBarrier ( std::ostream &  fout,
const PS::S32  divider = 1,
const PS::S32  width = PROFILE_PRINT_WIDTH 
) const
inline
Here is the caller graph for this function:

◆ dumpBarrierName()

void Tprofile::dumpBarrierName ( std::ostream &  fout,
const PS::S32  width = PROFILE_PRINT_WIDTH 
) const
inline
Here is the caller graph for this function:

◆ dumpName()

void Tprofile::dumpName ( std::ostream &  fout,
const PS::S32  width = PROFILE_PRINT_WIDTH 
) const
inline
Here is the caller graph for this function:

◆ end()

void Tprofile::end ( )
inline

◆ getMax()

PS::F64 Tprofile::getMax ( )
inline
Here is the caller graph for this function:

◆ getMin()

PS::F64 Tprofile::getMin ( )
inline
Here is the caller graph for this function:

◆ print()

void Tprofile::print ( std::ostream &  fout,
const PS::S32  divider = 1 
)
inline
Here is the caller graph for this function:

◆ reset()

void Tprofile::reset ( )
inline
Here is the caller graph for this function:

◆ start()

void Tprofile::start ( )
inline

Member Data Documentation

◆ name

const char* Tprofile::name

◆ tbar

PS::F64 Tprofile::tbar

◆ time

PS::F64 Tprofile::time

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