DebugDataManager.h
Go to the documentation of this file.
int getCounterValue(std::string name)
Get the value of a counter.
Definition: DebugDataManager.cpp:69
void enableBreakpoint(int id)
Enable a Breakpoint.
Definition: DebugDataManager.cpp:106
Class representation of a packet for pfpdb.
Definition: DebuggerPacket.h:52
void updatePacket(int id, std::string module, double time_, bool read)
Add a new packet or update an existing one.
Definition: DebugDataManager.cpp:128
void addDroppedPacket(int id, std::string module, std::string reason)
Add a packet to the list of dropped packets.
Definition: DebugDataManager.cpp:233
double getSimulationTime()
Get current simulation time.
Definition: DebugDataManager.cpp:265
void setSimulationTime(double time_ns)
Set the current simulation time.
Definition: DebugDataManager.cpp:300
std::vector< std::tuple< int, std::string, std::string > > & getDroppedPacketList()
Get vector of tuple representing a dropped packet.
Definition: DebugDataManager.cpp:295
std::vector< std::string > & getIgnoreModuleList()
Get list of modules that are being ignored.
Definition: DebugDataManager.cpp:289
void addWatchpoint(Watchpoint wp)
Add a Watchpoint.
Definition: DebugDataManager.cpp:151
std::vector< Breakpoint > & getBreakpointList()
Get list of Breakpoints.
Definition: DebugDataManager.cpp:255
DebugDataManager()
Default Constructor.
Definition: DebugDataManager.cpp:42
void removeWatchpoint(int id)
Remove a Watchpoint.
Definition: DebugDataManager.cpp:161
void removeCounter(std::string name)
Remove a counter.
Definition: DebugDataManager.cpp:53
void disableBreakpoint(int id)
Disable a Breakpoint.
Definition: DebugDataManager.cpp:117
DebuggerPacket * getPacket(int id)
Get DebuggerPacket with given ID>
Definition: DebugDataManager.cpp:270
std::vector< Watchpoint > & getWatchpointList()
Get list of Watchpoints.
Definition: DebugDataManager.cpp:284
void addBreakpoint(Breakpoint br)
Add a Breakpoint.
Definition: DebugDataManager.cpp:84
Breakpoint getBreakpoint(int index)
Get Breakpoint at given index from list of Breakpoints.
Definition: DebugDataManager.cpp:250
void disableWatchpoint(int id)
Disable a Watchpoint.
Definition: DebugDataManager.cpp:181
Defines a class representation of a breakpoint.
void setBreakOnPacketDrop(bool b)
Set whether the debugger should break when a packet is dropped.
Definition: DebugDataManager.cpp:240
int whoami()
Get the ID of the packet that is the debugger is currently following or focusing on.
Definition: DebugDataManager.cpp:191
bool checkIgnoreModules(std::string mod)
Check if the given module is being ignored.
Definition: DebugDataManager.cpp:211
std::map< int, DebuggerPacket > & getPacketList()
Get the map containing the DebuggerPacket as the key and the DebuggerPacket object as the value...
Definition: DebugDataManager.cpp:279
int getNumberOfBreakpoints()
Get number of Breakpoints in list.
Definition: DebugDataManager.cpp:260
void enableWatchpoint(int id)
Enable a Watchpoint.
Definition: DebugDataManager.cpp:171
void removeIgnoreModule(std::string mod)
Remove a module from the list of ignored modules.
Definition: DebugDataManager.cpp:222
void set_whoami(int id)
Set which packet is currently be followed or focused on.
Definition: DebugDataManager.cpp:195
Stores any data acquired from the simulation from the observer so that it may be fetched by the serve...
Definition: DebugDataManager.h:60
Defines a class representation of a watchpoint for the debugger.
Defines a class representation of a packet in the debugger context.
void addIgnoreModule(std::string mod)
Add a module to ignore.
Definition: DebugDataManager.cpp:200
void removeBreakpoint(int identifier)
Remove a Breakpoint.
Definition: DebugDataManager.cpp:95
std::map< std::string, int > getCounters()
Get map of counters and their values.
Definition: DebugDataManager.cpp:79
void updateCounter(std::string name, int val)
Update the value of a counter.
Definition: DebugDataManager.cpp:58
bool getBreakOnPacketDrop()
Check if the debugger is currently set to break when a packet is dropped.
Definition: DebugDataManager.cpp:245
void addCounter(std::string name)
Add a counter.
Definition: DebugDataManager.cpp:48
void removePacket(int id)
Remove a packet.
Definition: DebugDataManager.cpp:146