Profiler Class ReferenceΒΆ

adc_cpp: pops::runtime::program::Profiler Class Reference
adc_cpp 0.3.0
Model-free C++23 core for coupled hyperbolic-elliptic systems on adaptive (AMR) meshes, with MPI and GPU (Kokkos) backends
pops::runtime::program::Profiler Class Reference

#include <profiler.hpp>

+ Collaboration diagram for pops::runtime::program::Profiler:

Classes

struct  Entry
 

Public Member Functions

void enable ()
 
void disable ()
 
bool enabled () const
 
void reset ()
 
void record (const std::string &name, double seconds)
 
void count (const std::string &name, std::int64_t by=1)
 
void count_max (const std::string &name, std::int64_t value)
 
const Entryentry (const std::string &name) const
 
std::int64_t counter (const std::string &name) const
 
double total_s () const
 
std::size_t scope_count () const
 
std::string report () const
 

Member Function Documentation

◆ count()

void pops::runtime::program::Profiler::count ( const std::string &  name,
std::int64_t  by = 1 
)
inline
+ Here is the caller graph for this function:

◆ count_max()

void pops::runtime::program::Profiler::count_max ( const std::string &  name,
std::int64_t  value 
)
inline
+ Here is the caller graph for this function:

◆ counter()

std::int64_t pops::runtime::program::Profiler::counter ( const std::string &  name) const
inline

◆ disable()

void pops::runtime::program::Profiler::disable ( )
inline

◆ enable()

void pops::runtime::program::Profiler::enable ( )
inline

◆ enabled()

bool pops::runtime::program::Profiler::enabled ( ) const
inline
+ Here is the caller graph for this function:

◆ entry()

const Entry * pops::runtime::program::Profiler::entry ( const std::string &  name) const
inline

◆ record()

void pops::runtime::program::Profiler::record ( const std::string &  name,
double  seconds 
)
inline
+ Here is the caller graph for this function:

◆ report()

std::string pops::runtime::program::Profiler::report ( ) const
inline
+ Here is the call graph for this function:

◆ reset()

void pops::runtime::program::Profiler::reset ( )
inline

◆ scope_count()

std::size_t pops::runtime::program::Profiler::scope_count ( ) const
inline

◆ total_s()

double pops::runtime::program::Profiler::total_s ( ) const
inline
+ Here is the caller graph for this function:

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