Panzer
Version of the Day
|
Interface to papi counters. More...
#include <Panzer_PAPI_Counter2.hpp>
Classes | |
struct | InternalCounter2 |
Public Member Functions | |
PAPICounter2 (const std::string) | |
~PAPICounter2 () | |
Static Public Member Functions | |
static void | addEventCounter (const int event) |
static void | report (std::ostream &os, const Teuchos::Comm< int > &comm) |
static void | startCounters () |
static void | stopCounters () |
Private Attributes | |
std::string | m_name |
name of this counter More... | |
Static Private Attributes | |
static int | m_event_set = PAPI_NULL |
PAPI event set. More... | |
static std::vector< int > | m_events |
papi event index More... | |
static bool | m_is_initialized = false |
true if the static members have been intitialized More... | |
static std::map< std::string, InternalCounter2 > | m_counters |
maps the counter name to the data object More... | |
Interface to papi counters.
Mimics the Teuchos::TimeMonitor functionality
Definition at line 68 of file Panzer_PAPI_Counter2.hpp.
panzer::PAPICounter2::PAPICounter2 | ( | const std::string | counter_name | ) |
Timer starts at construction. Stops when destructor called.
initialize papi library
Definition at line 58 of file Panzer_PAPI_Counter2.cpp.
panzer::PAPICounter2::~PAPICounter2 | ( | ) |
Stops timer
Definition at line 94 of file Panzer_PAPI_Counter2.cpp.
|
static |
Add PAPI events. Can only be called before the initializePAPI() method.
Definition at line 110 of file Panzer_PAPI_Counter2.cpp.
|
static |
Definition at line 129 of file Panzer_PAPI_Counter2.cpp.
|
static |
Definition at line 119 of file Panzer_PAPI_Counter2.cpp.
|
static |
Definition at line 124 of file Panzer_PAPI_Counter2.cpp.
|
staticprivate |
PAPI event set.
Definition at line 101 of file Panzer_PAPI_Counter2.hpp.
|
staticprivate |
papi event index
Definition at line 103 of file Panzer_PAPI_Counter2.hpp.
|
staticprivate |
true if the static members have been intitialized
Definition at line 105 of file Panzer_PAPI_Counter2.hpp.
|
staticprivate |
maps the counter name to the data object
Definition at line 107 of file Panzer_PAPI_Counter2.hpp.
|
private |
name of this counter
Definition at line 109 of file Panzer_PAPI_Counter2.hpp.