gem5 v24.0.0.0
|
ActivityRecorder with a Ticked interface. More...
#include <activity.hh>
Public Member Functions | |
void | evaluate () |
Ticked interface. | |
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. | |
void | advance () |
Advances the activity buffer, decrementing the activityCount if active communication just left the time buffer, and determining if there is no activity. | |
void | activateStage (const int idx) |
Marks a stage as active. | |
void | deactivateStage (const int idx) |
Deactivates a stage. | |
bool | getStageActive (const int idx) const |
Returns the activity status of a stage. | |
int | getNumStages () const |
Returns the number of stages. | |
int | getActivityCount () const |
Returns how many things are active within the recorder. | |
void | setActivityCount (int count) |
Sets the count to a starting value. | |
bool | active () |
Returns if the CPU should be active. | |
void | reset () |
Clears the time buffer and the activity count. | |
void | dump () |
Debug function to dump the contents of the time buffer. | |
void | validate () |
Debug function to ensure that the activity count matches the contents of the time buffer. | |
const std::string & | name () const |
ActivityRecorder with a Ticked interface.
Definition at line 57 of file activity.hh.
|
inline |
Definition at line 65 of file activity.hh.
|
inline |
Ticked interface.
Definition at line 61 of file activity.hh.
References gem5::ActivityRecorder::advance().
Referenced by gem5::minor::Pipeline::evaluate().
void gem5::minor::MinorActivityRecorder::minorTrace | ( | ) | const |
Definition at line 51 of file activity.cc.
References gem5::ActivityRecorder::getActivityCount(), gem5::ActivityRecorder::getNumStages(), gem5::ActivityRecorder::getStageActive(), and gem5::minor::minorTrace().
Referenced by gem5::minor::Pipeline::minorTrace().