Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
amrex::TinyProfiler Class Reference

A simple profiler that returns basic performance information (e.g. min, max, and average running time) More...

#include <AMReX_TinyProfiler.H>

Public Member Functions

 TinyProfiler (std::string funcname) noexcept
 
 TinyProfiler (std::string funcname, bool start_) noexcept
 
 TinyProfiler (const char *funcname) noexcept
 
 TinyProfiler (const char *funcname, bool start_) noexcept
 
 ~TinyProfiler ()
 
 TinyProfiler (TinyProfiler const &)=delete
 
 TinyProfiler (TinyProfiler &&)=delete
 
TinyProfileroperator= (TinyProfiler const &)=delete
 
TinyProfileroperator= (TinyProfiler &&)=delete
 
void start () noexcept
 
void stop () noexcept
 
void memory_start () const noexcept
 
void memory_stop () const noexcept
 

Static Public Member Functions

static MemStatmemory_alloc (std::size_t nbytes, std::map< std::string, MemStat > &memstats) noexcept
 
static void memory_free (std::size_t nbytes, MemStat *stat) noexcept
 
static void Initialize ()
 
static void Finalize (bool bFlushing=false) noexcept
 
static void MemoryInitialize ()
 
static void MemoryFinalize (bool bFlushing=false) noexcept
 
static bool RegisterArena (const std::string &memory_name, std::map< std::string, MemStat > &memstats) noexcept
 
static void DeregisterArena (std::map< std::string, MemStat > &memstats) noexcept
 
static void StartRegion (std::string regname) noexcept
 
static void StopRegion (const std::string &regname) noexcept
 
static void PrintCallStack (std::ostream &os)
 
static void PrintMemoryUsage (std::ostream *os, bool only_local) noexcept
 

Detailed Description

A simple profiler that returns basic performance information (e.g. min, max, and average running time)

Constructor & Destructor Documentation

◆ TinyProfiler() [1/6]

amrex::TinyProfiler::TinyProfiler ( std::string  funcname)
explicitnoexcept

◆ TinyProfiler() [2/6]

amrex::TinyProfiler::TinyProfiler ( std::string  funcname,
bool  start_ 
)
noexcept

◆ TinyProfiler() [3/6]

amrex::TinyProfiler::TinyProfiler ( const char *  funcname)
explicitnoexcept

◆ TinyProfiler() [4/6]

amrex::TinyProfiler::TinyProfiler ( const char *  funcname,
bool  start_ 
)
noexcept

◆ ~TinyProfiler()

amrex::TinyProfiler::~TinyProfiler ( )

◆ TinyProfiler() [5/6]

amrex::TinyProfiler::TinyProfiler ( TinyProfiler const &  )
delete

◆ TinyProfiler() [6/6]

amrex::TinyProfiler::TinyProfiler ( TinyProfiler &&  )
delete

Member Function Documentation

◆ DeregisterArena()

void amrex::TinyProfiler::DeregisterArena ( std::map< std::string, MemStat > &  memstats)
staticnoexcept

◆ Finalize()

void amrex::TinyProfiler::Finalize ( bool  bFlushing = false)
staticnoexcept

◆ Initialize()

void amrex::TinyProfiler::Initialize ( )
static

◆ memory_alloc()

MemStat * amrex::TinyProfiler::memory_alloc ( std::size_t  nbytes,
std::map< std::string, MemStat > &  memstats 
)
staticnoexcept

◆ memory_free()

void amrex::TinyProfiler::memory_free ( std::size_t  nbytes,
MemStat stat 
)
staticnoexcept

◆ memory_start()

void amrex::TinyProfiler::memory_start ( ) const
noexcept

◆ memory_stop()

void amrex::TinyProfiler::memory_stop ( ) const
noexcept

◆ MemoryFinalize()

void amrex::TinyProfiler::MemoryFinalize ( bool  bFlushing = false)
staticnoexcept

◆ MemoryInitialize()

void amrex::TinyProfiler::MemoryInitialize ( )
static

◆ operator=() [1/2]

TinyProfiler & amrex::TinyProfiler::operator= ( TinyProfiler &&  )
delete

◆ operator=() [2/2]

TinyProfiler & amrex::TinyProfiler::operator= ( TinyProfiler const &  )
delete

◆ PrintCallStack()

void amrex::TinyProfiler::PrintCallStack ( std::ostream &  os)
static

◆ PrintMemoryUsage()

void amrex::TinyProfiler::PrintMemoryUsage ( std::ostream *  os,
bool  only_local 
)
staticnoexcept

◆ RegisterArena()

bool amrex::TinyProfiler::RegisterArena ( const std::string &  memory_name,
std::map< std::string, MemStat > &  memstats 
)
staticnoexcept

◆ start()

void amrex::TinyProfiler::start ( )
noexcept

◆ StartRegion()

void amrex::TinyProfiler::StartRegion ( std::string  regname)
staticnoexcept

◆ stop()

void amrex::TinyProfiler::stop ( )
noexcept

◆ StopRegion()

void amrex::TinyProfiler::StopRegion ( const std::string &  regname)
staticnoexcept

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