DebugObserver.h
Go to the documentation of this file.
virtual void thread_idle(const std::string &teu_mod, const std::string &tec_mod, std::size_t thread_id, std::size_t packet_id, double simulation_time)
Function called by the simulation when a TEU thread starts idling.
Definition: DebugObserver.cpp:203
DebugObserver()
Default Constructor.
Definition: DebugObserver.cpp:43
void enableDebugger()
Enables the debugger.
Definition: DebugObserver.cpp:224
void waitForRunCommand()
Called after SystemC elaboration to halt the simulation until the run command is sent.
Definition: DebugObserver.cpp:63
void data_dropped(const std::string &in_module, const std::shared_ptr< TrType > data, const std::string &drop_reason, double simulation_time) override
Function called by the simulation when data is dropped in a module.
Definition: DebugObserver.cpp:157
void data_written(const std::string &from_module, const std::shared_ptr< TrType > data, double simulation_time) override
Function called by the simulation when data is written by a module.
Definition: DebugObserver.cpp:117
Interface for Control Plane module that is necessary for it to work with pfpdb.
Definition: CPDebuggerInterface.h:57
~DebugObserver()
Destructor.
Definition: DebugObserver.cpp:53
Definition: PFPObserver.h:51
virtual void counter_added(const std::string &module_name, const std::string &counter_name, double simulation_time=0)
Function called by the simulation when a counter is added to a module.
Definition: DebugObserver.cpp:67
virtual void counter_removed(const std::string &module_name, const std::string &counter_name, double simulation_time=0)
Function called by the simulation when a counter is removed from a module.
Definition: DebugObserver.cpp:78
virtual void thread_end(const std::string &teu_mod, const std::string &tec_mod, std::size_t thread_id, std::size_t packet_id, double simulation_time)
Function called by the simulation when a TEU thread ends.
Definition: DebugObserver.cpp:192
Stores any data acquired from the simulation from the observer so that it may be fetched by the serve...
Definition: DebugDataManager.h:60
void registerCP(CPDebuggerInterface *cp_debug_if)
Register a Control Plane (which implements CPDebuggerInterface) to the debugger.
Definition: DebugObserver.cpp:324
void data_read(const std::string &to_module, const std::shared_ptr< TrType > data, double simulation_time) override
Function called by the simulation when data is read by a module.
Definition: DebugObserver.cpp:136
virtual void thread_begin(const std::string &teu_mod, const std::string &tec_mod, std::size_t thread_id, std::size_t packet_id, double simulation_time)
Function called by the simulation when a TEU thread begins.
Definition: DebugObserver.cpp:181
Defines a class representation of a packet in the debugger context.
Establishes communication with pfpdb python script and services its requests.
Definition: DebuggerIPCServer.h:61
virtual void counter_updated(const std::string &module_name, const std::string &counter_name, std::size_t new_value, double simulation_time)
Function called by the simulation when a counter is updated.
Definition: DebugObserver.cpp:89
Defines class which stores any data about taht simulation that is required by pfpdb.
Defines class that services requests from pfpdb.