|
scc
2024.06
SystemC components library
|
a performance estimator More...
#include <perf_estimator.h>


Public Member Functions | |
| perf_estimator () | |
| default constructor creating an unnamed perf_estimator | |
| perf_estimator (sc_core::sc_time heart_beat) | |
| default constructor creating an unnamed perf_estimator having a heart beat More... | |
| virtual | ~perf_estimator () |
| destructor | |
| void | set_cycle_time (sc_core::sc_time cycle_period) |
| set the cycle time for cylces per second calculation More... | |
Protected Member Functions | |
| perf_estimator (const sc_core::sc_module_name &nm, sc_core::sc_time heart_beat) | |
| void | end_of_elaboration () override |
| SystemC callbacks. | |
| void | start_of_simulation () override |
| void | end_of_simulation () override |
| void | beat () |
| long | get_memory () |
Protected Attributes | |
| time_stamp | soc |
| the recorded time stamps | |
| time_stamp | eoe |
| time_stamp | sos |
| time_stamp | eos |
| sc_core::sc_time | beat_delay |
| sc_core::sc_time | cycle_period |
| long | max_memory {0} |
a performance estimator
It records the time stamps a various time points (start and end of simulation) and calculates some performance figures. Optionally it provides a heart beat which periodically calls a functor If a cycle time is provides it calculates also the cycles per (wall clock) second
Definition at line 39 of file perf_estimator.h.
|
inline |
default constructor creating an unnamed perf_estimator having a heart beat
| heart_beat |
Definition at line 75 of file perf_estimator.h.
|
inline |
set the cycle time for cylces per second calculation
| cycle_period |
Definition at line 89 of file perf_estimator.h.