|
scc 2025.09
SystemC components library
|
base class for automatic tracer More...
#include <tracer_base.h>


Public Member Functions | |
| tracer_base (const sc_core::sc_module_name &nm) | |
| named constructor | |
| tracer_base (const sc_core::sc_module_name &nm, sc_core::sc_trace_file *tf, bool owned=true) | |
| named constructor with trace file | |
| ~tracer_base () | |
| destructor | |
| void | set_trace_types (trace_types t) |
| set the types to trace | |
| const sc_core::sc_trace_file * | get_trace_file () const |
| get the tracefile used by this tracer | |
| sc_core::sc_trace_file * | get_trace_file () |
| void | set_trace_file (sc_core::sc_trace_file *trf) |
| set the trace file of this tracer | |
Static Public Member Functions | |
| static void | set_default_trace_enable (bool) |
| static bool | get_default_trace_enable () |
Public Attributes | |
| cci::cci_param_handle | default_trace_enable_handle |
Protected Member Functions | |
| virtual void | descend (const sc_core::sc_object *, bool trace_all) |
Static Protected Member Functions | |
| static std::string | get_name () |
| static void | try_trace (sc_core::sc_trace_file *trace_file, const sc_core::sc_object *object, trace_types t) |
Protected Attributes | |
| sc_core::sc_trace_file * | trf {nullptr} |
| trace_types | types_to_trace {trace_types::ALL} |
| cci::cci_broker_handle | cci_broker |
| std::unique_ptr< cci::cci_param< bool > > | default_trace_enable |
base class for automatic tracer
it provide the basic infrastructure to automagically trace ports, signals, tlm sockets and sc_variables. It comes with some limitations:
Definition at line 80 of file tracer_base.h.
|
inline |
| scc::tracer_base::tracer_base | ( | const sc_core::sc_module_name & | nm, |
| sc_core::sc_trace_file * | tf, | ||
| bool | owned = true ) |
named constructor with trace file
| nm | the instance name of the tracer |
| tf | the trace file |
| owned | if true the tracefile is owned by the tracer and closed upon simulation end |
Definition at line 310 of file tracer_base.cpp.
|
inline |
destructor
Definition at line 107 of file tracer_base.h.
|
protectedvirtual |
Reimplemented in scc::configurable_tracer.
Definition at line 271 of file tracer_base.cpp.
|
static |
Definition at line 322 of file tracer_base.cpp.
|
staticprotected |
Definition at line 269 of file tracer_base.cpp.
|
inline |
Definition at line 128 of file tracer_base.h.
|
inline |
get the tracefile used by this tracer
Definition at line 121 of file tracer_base.h.
|
static |
Definition at line 331 of file tracer_base.cpp.
|
inline |
set the trace file of this tracer
The provided file is not owned by the tracer. Hence the caller is responsible for closing the tracefile
| trf |
Definition at line 136 of file tracer_base.h.
|
inline |
|
staticprotected |
Definition at line 110 of file tracer_base.cpp.
|
protected |
The broker used by all tracer classes.
Definition at line 156 of file tracer_base.h.
|
protected |
Definition at line 158 of file tracer_base.h.
| cci::cci_param_handle scc::tracer_base::default_trace_enable_handle |
cci parameter handle to determine if the tracing is enabled if not specified explicitly
Definition at line 84 of file tracer_base.h.
|
protected |
Definition at line 149 of file tracer_base.h.
|
protected |
Definition at line 151 of file tracer_base.h.