A simple profiler that returns basic performance information (e.g. min, max, and average running time)
More...
#include <AMReX_TinyProfiler.H>
|
static std::string const & | get_output_file () |
|
static void | PrintStats (std::map< std::string, Stats > ®stats, double dt_max, std::ostream *os) |
|
static void | PrintMemStats (std::map< std::string, MemStat > &memstats, std::string const &memname, double dt_max, double t_final, std::ostream *os) |
|
A simple profiler that returns basic performance information (e.g. min, max, and average running time)
◆ 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]
◆ TinyProfiler() [6/6]
◆ DeregisterArena()
void amrex::TinyProfiler::DeregisterArena |
( |
std::map< std::string, MemStat > & |
memstats | ) |
|
|
staticnoexcept |
◆ Finalize()
void amrex::TinyProfiler::Finalize |
( |
bool |
bFlushing = false | ) |
|
|
staticnoexcept |
◆ get_output_file()
std::string const & amrex::TinyProfiler::get_output_file |
( |
| ) |
|
|
staticprivate |
◆ Initialize()
void amrex::TinyProfiler::Initialize |
( |
| ) |
|
|
staticnoexcept |
◆ 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 |
( |
| ) |
|
|
staticnoexcept |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ PrintCallStack()
void amrex::TinyProfiler::PrintCallStack |
( |
std::ostream & |
os | ) |
|
|
static |
◆ PrintMemStats()
void amrex::TinyProfiler::PrintMemStats |
( |
std::map< std::string, MemStat > & |
memstats, |
|
|
std::string const & |
memname, |
|
|
double |
dt_max, |
|
|
double |
t_final, |
|
|
std::ostream * |
os |
|
) |
| |
|
staticprivate |
◆ PrintStats()
void amrex::TinyProfiler::PrintStats |
( |
std::map< std::string, Stats > & |
regstats, |
|
|
double |
dt_max, |
|
|
std::ostream * |
os |
|
) |
| |
|
staticprivate |
◆ 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 |
◆ all_memnames
std::vector< std::string > amrex::TinyProfiler::all_memnames |
|
staticprivate |
◆ all_memstats
std::vector< std::map< std::string, MemStat > * > amrex::TinyProfiler::all_memstats |
|
staticprivate |
◆ device_synchronize_around_region
bool amrex::TinyProfiler::device_synchronize_around_region = false |
|
staticprivate |
◆ enabled
bool amrex::TinyProfiler::enabled = true |
|
staticprivate |
◆ fname
std::string amrex::TinyProfiler::fname |
|
private |
◆ global_depth
int amrex::TinyProfiler::global_depth = -1 |
|
private |
◆ in_parallel_region
bool amrex::TinyProfiler::in_parallel_region = false |
|
private |
◆ mem_stack
std::deque< const TinyProfiler * > amrex::TinyProfiler::mem_stack |
|
staticprivate |
◆ memprof_enabled
bool amrex::TinyProfiler::memprof_enabled = true |
|
staticprivate |
◆ n_print_tabs
int amrex::TinyProfiler::n_print_tabs = 0 |
|
staticprivate |
◆ output_file
std::string amrex::TinyProfiler::output_file |
|
staticprivate |
◆ print_threshold
double amrex::TinyProfiler::print_threshold = 1. |
|
staticprivate |
◆ regionstack
std::vector< std::string > amrex::TinyProfiler::regionstack |
|
staticprivate |
◆ stats
std::vector<Stats*> amrex::TinyProfiler::stats |
|
private |
◆ statsmap
std::map< std::string, std::map< std::string, TinyProfiler::Stats > > amrex::TinyProfiler::statsmap |
|
staticprivate |
◆ t_init
double amrex::TinyProfiler::t_init = std::numeric_limits<double>::max() |
|
staticprivate |
◆ ttstack
std::deque< std::tuple< double, double, std::string * > > amrex::TinyProfiler::ttstack |
|
staticprivate |
◆ verbose
int amrex::TinyProfiler::verbose = 0 |
|
staticprivate |
The documentation for this class was generated from the following files: