gem5  v22.0.0.1
Public Member Functions | List of all members
gem5::minor::MinorActivityRecorder Class Reference

ActivityRecorder with a Ticked interface. More...

#include <activity.hh>

Inheritance diagram for gem5::minor::MinorActivityRecorder:
gem5::ActivityRecorder

Public Member Functions

void evaluate ()
 Ticked interface. More...
 
void minorTrace () const
 
 MinorActivityRecorder (const std::string &name, int num_stages, int longest_latency)
 
- Public Member Functions inherited from gem5::ActivityRecorder
 ActivityRecorder (const std::string &name, int num_stages, int longest_latency, int count)
 
 ~ActivityRecorder ()
 
void activity ()
 Records that there is activity this cycle. More...
 
void advance ()
 Advances the activity buffer, decrementing the activityCount if active communication just left the time buffer, and determining if there is no activity. More...
 
void activateStage (const int idx)
 Marks a stage as active. More...
 
void deactivateStage (const int idx)
 Deactivates a stage. More...
 
bool getStageActive (const int idx) const
 Returns the activity status of a stage. More...
 
int getNumStages () const
 Returns the number of stages. More...
 
int getActivityCount () const
 Returns how many things are active within the recorder. More...
 
void setActivityCount (int count)
 Sets the count to a starting value. More...
 
bool active ()
 Returns if the CPU should be active. More...
 
void reset ()
 Clears the time buffer and the activity count. More...
 
void dump ()
 Debug function to dump the contents of the time buffer. More...
 
void validate ()
 Debug function to ensure that the activity count matches the contents of the time buffer. More...
 
const std::string & name () const
 

Detailed Description

ActivityRecorder with a Ticked interface.

Definition at line 58 of file activity.hh.

Constructor & Destructor Documentation

◆ MinorActivityRecorder()

gem5::minor::MinorActivityRecorder::MinorActivityRecorder ( const std::string &  name,
int  num_stages,
int  longest_latency 
)
inline

Definition at line 66 of file activity.hh.

Member Function Documentation

◆ evaluate()

void gem5::minor::MinorActivityRecorder::evaluate ( )
inline

Ticked interface.

Definition at line 62 of file activity.hh.

References gem5::ActivityRecorder::advance().

Referenced by gem5::minor::Pipeline::evaluate().

◆ minorTrace()

void gem5::minor::MinorActivityRecorder::minorTrace ( ) const

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

Generated on Sat Jun 18 2022 08:14:25 for gem5 by doxygen 1.8.17