ParaNut SystemC Model
A SystemC Model of the ParaNut architecture
|
CPU performance monitor class. More...
#include <base.h>
Public Member Functions | |
CPerfMonCPU () | |
Default constructor for EEventsCPU events and event definitions. More... | |
void | Init () |
Call CPerfMon::Init() for EEventsCPU events and event definitions. More... | |
void | Count (EEventsCPU ev_no) |
Call CPerfMon::Count() after casting EEventsCPU to int. More... | |
![]() | |
CPerfMon () | |
Default constructor, 0 events and no event definitions. More... | |
CPerfMon (int events, CEventDef *ev_tab) | |
Constructor for supplying number of events and event definition(s). More... | |
~CPerfMon () | |
Destructor. More... | |
void | Init (int events, CEventDef *ev_tab) |
Init performance monitor for supplied number of events and event definition(s). More... | |
void | Done () |
Free reserved memory for performance monitoring. More... | |
void | Reset () |
Reset performance monitor (counted events/times, not number of events and event definition(s)). More... | |
void | Count (int ev_no) |
Count an event at current simulation time. More... | |
void | Display (const char *name=NULL) |
Display the collected performance information. More... | |
Additional Inherited Members | |
![]() | |
int | events_ |
Number of events this performance monitor monitors. More... | |
CEventDef * | ev_tab_ |
Pointer to event definition(s). More... | |
int * | count_tab_ |
Event counter table. More... | |
double * | time_tab_ |
Event total time table. More... | |
double * | min_tab_ |
Event minimal time table. More... | |
double * | max_tab_ |
Event maximum time table. More... | |
double | last_stamp_ |
Time stamp of last event. More... | |
int | last_no_ |
Event number of last event. More... | |
CPU performance monitor class.
|
inline |
Default constructor for EEventsCPU events and event definitions.
|
inline |
Call CPerfMon::Count() after casting EEventsCPU to int.
void CPerfMonCPU::Init | ( | ) |
Call CPerfMon::Init() for EEventsCPU events and event definitions.