Keep statistics based on traces. More...
Public Member Functions | |
TestCounter () | |
Constructor. More... | |
virtual | ~TestCounter () |
void | ConnectTraces (Ptr< QueueDisc > qd) |
Connect private methods to the queue disc traces. More... | |
Private Member Functions | |
void | PacketDad (Ptr< const QueueDiscItem > item, const char *reason) |
Update statistics after a packet has been dropped after dequeue. More... | |
void | PacketDbe (Ptr< const QueueDiscItem > item, const char *reason) |
Update statistics after a packet has been dropped before enqueue. More... | |
void | PacketDequeued (Ptr< const QueueDiscItem > item) |
Update statistics after a packet has been dequeued. More... | |
void | PacketEnqueued (Ptr< const QueueDiscItem > item) |
Update statistics after a packet has been enqueued. More... | |
Private Attributes | |
uint32_t | m_nBytes |
Number of queued bytes. More... | |
uint32_t | m_nDadBytes |
Number of packets dropped after dequeue. More... | |
uint32_t | m_nDadPackets |
Number of packets dropped after dequeue. More... | |
uint32_t | m_nDbeBytes |
Number of packets dropped before enqueue. More... | |
uint32_t | m_nDbePackets |
Number of packets dropped before enqueue. More... | |
uint32_t | m_nPackets |
Number of queued packets. More... | |
Friends | |
class | QueueDiscTracesTestCase |
Needs to access private members. More... | |
Keep statistics based on traces.
Definition at line 200 of file queue-disc-traces-test-suite.cc.
TestCounter::TestCounter | ( | ) |
Constructor.
Definition at line 249 of file queue-disc-traces-test-suite.cc.
|
virtual |
Definition at line 259 of file queue-disc-traces-test-suite.cc.
Connect private methods to the queue disc traces.
qd | the queue disc |
Definition at line 292 of file queue-disc-traces-test-suite.cc.
References ns3::MakeCallback(), PacketDad(), PacketDbe(), PacketDequeued(), PacketEnqueued(), and ns3::ObjectBase::TraceConnectWithoutContext().
|
private |
Update statistics after a packet has been dropped after dequeue.
item | the dropped packet |
reason | the reason why the packet was dropped |
Definition at line 285 of file queue-disc-traces-test-suite.cc.
References m_nDadBytes, and m_nDadPackets.
Referenced by ConnectTraces().
|
private |
Update statistics after a packet has been dropped before enqueue.
item | the dropped packet |
reason | the reason why the packet was dropped |
Definition at line 278 of file queue-disc-traces-test-suite.cc.
References m_nDbeBytes, and m_nDbePackets.
Referenced by ConnectTraces().
|
private |
Update statistics after a packet has been dequeued.
item | the dequeued packet |
Definition at line 271 of file queue-disc-traces-test-suite.cc.
References m_nBytes, and m_nPackets.
Referenced by ConnectTraces().
|
private |
Update statistics after a packet has been enqueued.
item | the enqueued packet |
Definition at line 264 of file queue-disc-traces-test-suite.cc.
References m_nBytes, and m_nPackets.
Referenced by ConnectTraces().
|
friend |
Needs to access private members.
Definition at line 246 of file queue-disc-traces-test-suite.cc.
|
private |
Number of queued bytes.
Definition at line 240 of file queue-disc-traces-test-suite.cc.
Referenced by PacketDequeued(), and PacketEnqueued().
|
private |
Number of packets dropped after dequeue.
Definition at line 244 of file queue-disc-traces-test-suite.cc.
Referenced by PacketDad().
|
private |
Number of packets dropped after dequeue.
Definition at line 243 of file queue-disc-traces-test-suite.cc.
Referenced by PacketDad().
|
private |
Number of packets dropped before enqueue.
Definition at line 242 of file queue-disc-traces-test-suite.cc.
Referenced by PacketDbe().
|
private |
Number of packets dropped before enqueue.
Definition at line 241 of file queue-disc-traces-test-suite.cc.
Referenced by PacketDbe().
|
private |
Number of queued packets.
Definition at line 239 of file queue-disc-traces-test-suite.cc.
Referenced by PacketDequeued(), and PacketEnqueued().