|
scc 2025.09
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 | |
| virtual | ~perf_estimator () |
| destructor | |
| void | set_cycle_time (sc_core::sc_time cycle_period) |
| set the cycle time for cylces per second calculation | |
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
Definition at line 67 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.
|
virtual |
destructor
Definition at line 49 of file perf_estimator.cpp.
|
protected |
Definition at line 85 of file perf_estimator.cpp.
|
overrideprotected |
SystemC callbacks.
Definition at line 63 of file perf_estimator.cpp.
|
overrideprotected |
Definition at line 70 of file perf_estimator.cpp.
|
protected |
Definition at line 152 of file perf_estimator.cpp.
|
inline |
set the cycle time for cylces per second calculation
| cycle_period |
Definition at line 89 of file perf_estimator.h.
|
overrideprotected |
Definition at line 65 of file perf_estimator.cpp.
|
protected |
Definition at line 102 of file perf_estimator.h.
|
protected |
Definition at line 102 of file perf_estimator.h.
|
protected |
Definition at line 99 of file perf_estimator.h.
|
protected |
Definition at line 101 of file perf_estimator.h.
|
protected |
Definition at line 105 of file perf_estimator.h.
|
protected |
the recorded time stamps
Definition at line 98 of file perf_estimator.h.
|
protected |
Definition at line 100 of file perf_estimator.h.