pfp::core::db::DebuggerPacket Class Reference

Class representation of a packet for pfpdb. More...

#include <DebuggerPacket.h>

+ Collaboration diagram for pfp::core::db::DebuggerPacket:

Classes

class  PacketLocation
 Data structure to represent the location of a packet as well as the times at which it entered and left this location. More...
 

Public Member Functions

 DebuggerPacket ()
 Empty Constructor.
 
 DebuggerPacket (int id, std::string location, double time_ns)
 Constructor. More...
 
void updateTraceReadTime (std::string mod, double rtime)
 Update the time at which the packet entered a module. More...
 
void updateTraceWriteTime (std::string mod, double wtime)
 Update the time at which the packet left a module. More...
 
int getID () const
 Get the packet ID. More...
 
std::string getLocation () const
 Get current packet location (which module the packet is in). More...
 
double getTime () const
 Get the time of the last update (read or write) to this packet. More...
 
std::vector< PacketLocationgetTrace () const
 Get backtrace of the packet. More...
 
void setCurrentLocation (std::string loc)
 Set the current location of the packet. More...
 
void setTime (double t)
 Set the current time of the packet. More...
 

Detailed Description

Class representation of a packet for pfpdb.

Constructor & Destructor Documentation

pfp::core::db::DebuggerPacket::DebuggerPacket ( int  id,
std::string  location,
double  time_ns 
)

Constructor.

Parameters
idID of packet.
locationCurrent module the packet is in.
time_nsCurrent simulation time in nanoseconds.

Member Function Documentation

int pfp::core::db::DebuggerPacket::getID ( ) const

Get the packet ID.

Returns
Packet id.
std::string pfp::core::db::DebuggerPacket::getLocation ( ) const

Get current packet location (which module the packet is in).

Returns
Packet location.
double pfp::core::db::DebuggerPacket::getTime ( ) const

Get the time of the last update (read or write) to this packet.

Returns
Time of last update.
std::vector< DebuggerPacket::PacketLocation > pfp::core::db::DebuggerPacket::getTrace ( ) const

Get backtrace of the packet.

Includes which modules it when into as well as the times at which it entered and left the module.

void pfp::core::db::DebuggerPacket::setCurrentLocation ( std::string  loc)

Set the current location of the packet.

Parameters
locModule the packet is currently in.

+ Here is the caller graph for this function:

void pfp::core::db::DebuggerPacket::setTime ( double  t)

Set the current time of the packet.

Normally corresponds to the last update on the packet.

Parameters
tCurrent Time.

+ Here is the caller graph for this function:

void pfp::core::db::DebuggerPacket::updateTraceReadTime ( std::string  mod,
double  rtime 
)

Update the time at which the packet entered a module.

Parameters
modModule name.
rtimeTime at which the packet entered the module.

+ Here is the caller graph for this function:

void pfp::core::db::DebuggerPacket::updateTraceWriteTime ( std::string  mod,
double  wtime 
)

Update the time at which the packet left a module.

Parameters
modModule name.
wtimeTime at which the packet left the module.

+ Here is the caller graph for this function:


The documentation for this class was generated from the following files:
  • /home/lemniscate/workspace/PFPSim/pfpsim/core/debugger/DebuggerPacket.h
  • /home/lemniscate/workspace/PFPSim/pfpsim/core/debugger/DebuggerPacket.cpp