|
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 | |
Static Private Attributes | |
| static int | m_event_set = PAPI_NULL |
| PAPI event set. | |
| static std::vector< int > | m_events |
| papi event index | |
| static bool | m_is_initialized = false |
| true if the static members have been intitialized | |
| static std::map< std::string, InternalCounter2 > | m_counters |
| maps the counter name to the data object | |
Interface to papi counters.
Mimics the Teuchos::TimeMonitor functionality
Definition at line 36 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 26 of file Panzer_PAPI_Counter2.cpp.
| panzer::PAPICounter2::~PAPICounter2 | ( | ) |
Stops timer
Definition at line 62 of file Panzer_PAPI_Counter2.cpp.
|
static |
Add PAPI events. Can only be called before the initializePAPI() method.
Definition at line 78 of file Panzer_PAPI_Counter2.cpp.
|
static |
Definition at line 97 of file Panzer_PAPI_Counter2.cpp.
|
static |
Definition at line 87 of file Panzer_PAPI_Counter2.cpp.
|
static |
Definition at line 92 of file Panzer_PAPI_Counter2.cpp.
|
staticprivate |
PAPI event set.
Definition at line 69 of file Panzer_PAPI_Counter2.hpp.
|
staticprivate |
papi event index
Definition at line 71 of file Panzer_PAPI_Counter2.hpp.
|
staticprivate |
true if the static members have been intitialized
Definition at line 73 of file Panzer_PAPI_Counter2.hpp.
|
staticprivate |
maps the counter name to the data object
Definition at line 75 of file Panzer_PAPI_Counter2.hpp.
|
private |
name of this counter
Definition at line 77 of file Panzer_PAPI_Counter2.hpp.