Panzer  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
panzer::PAPICounter2 Class Reference

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...
 

Detailed Description

Interface to papi counters.

Mimics the Teuchos::TimeMonitor functionality

Definition at line 68 of file Panzer_PAPI_Counter2.hpp.

Constructor & Destructor Documentation

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.

Member Function Documentation

void panzer::PAPICounter2::addEventCounter ( const int  event)
static

Add PAPI events. Can only be called before the initializePAPI() method.

Definition at line 110 of file Panzer_PAPI_Counter2.cpp.

void panzer::PAPICounter2::report ( std::ostream &  os,
const Teuchos::Comm< int > &  comm 
)
static

Definition at line 129 of file Panzer_PAPI_Counter2.cpp.

void panzer::PAPICounter2::startCounters ( )
static

Definition at line 119 of file Panzer_PAPI_Counter2.cpp.

void panzer::PAPICounter2::stopCounters ( )
static

Definition at line 124 of file Panzer_PAPI_Counter2.cpp.

Member Data Documentation

int panzer::PAPICounter2::m_event_set = PAPI_NULL
staticprivate

PAPI event set.

Definition at line 101 of file Panzer_PAPI_Counter2.hpp.

std::vector< int > panzer::PAPICounter2::m_events
staticprivate

papi event index

Definition at line 103 of file Panzer_PAPI_Counter2.hpp.

bool panzer::PAPICounter2::m_is_initialized = false
staticprivate

true if the static members have been intitialized

Definition at line 105 of file Panzer_PAPI_Counter2.hpp.

std::map< std::string, PAPICounter2::InternalCounter2 > panzer::PAPICounter2::m_counters
staticprivate

maps the counter name to the data object

Definition at line 107 of file Panzer_PAPI_Counter2.hpp.

std::string panzer::PAPICounter2::m_name
private

name of this counter

Definition at line 109 of file Panzer_PAPI_Counter2.hpp.


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