scc  2022.4.0
SystemC components library
scc::perf_estimator Class Reference

a performance estimator More...

#include <perf_estimator.h>

Inheritance diagram for scc::perf_estimator:
Collaboration diagram for scc::perf_estimator:

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}
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ perf_estimator()

scc::perf_estimator::perf_estimator ( sc_core::sc_time  heart_beat)
inline

default constructor creating an unnamed perf_estimator having a heart beat

Parameters
heart_beat

Definition at line 75 of file perf_estimator.h.

Member Function Documentation

◆ set_cycle_time()

void scc::perf_estimator::set_cycle_time ( sc_core::sc_time  cycle_period)
inline

set the cycle time for cylces per second calculation

Parameters
cycle_period

Definition at line 89 of file perf_estimator.h.


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