|
EMANE
1.0.1
|
Common NEM layer statistics and drop reason tables. More...
#include <commonlayerstatistics.h>
Public Member Functions | |
| CommonLayerStatistics (const StatisticTableLabels &unicastDropTableLabels, const StatisticTableLabels &broadcastDropTableLabels={}, const std::string &sInstance={}) | |
| ~CommonLayerStatistics () | |
| void | registerStatistics (StatisticRegistrar &statisticRegistrar) |
| void | processInbound (const UpstreamPacket &pkt) |
| void | processOutbound (const UpstreamPacket &pkt, Microseconds delay, size_t dropCode={}) |
| void | processInbound (const DownstreamPacket &pkt) |
| void | processOutbound (const DownstreamPacket &pkt, Microseconds delay, size_t dropCode={}, bool bSelfGenerated={}) |
Common NEM layer statistics and drop reason tables.
Definition at line 52 of file commonlayerstatistics.h.
| EMANE::Utils::CommonLayerStatistics::CommonLayerStatistics | ( | const StatisticTableLabels & | unicastDropTableLabels, |
| const StatisticTableLabels & | broadcastDropTableLabels = {}, |
||
| const std::string & | sInstance = {} |
||
| ) |
Creates a CommonLayerStatistics instance
| unicastDropTableLabels | Unicast drop table row labels |
| broadcastDropTableLabels | Broadcast drop table row labels. Defaults to Unicast drop table labels. |
| sInstance | String to append to all statistic names |
Definition at line 740 of file commonlayerstatistics.cc.
| EMANE::Utils::CommonLayerStatistics::~CommonLayerStatistics | ( | ) |
Destroys an instance
Definition at line 747 of file commonlayerstatistics.cc.
| void EMANE::Utils::CommonLayerStatistics::processInbound | ( | const UpstreamPacket & | pkt | ) |
Processes statistics for an inbound upstream packet
| pkt | Inbound packet |
Definition at line 757 of file commonlayerstatistics.cc.
| void EMANE::Utils::CommonLayerStatistics::processInbound | ( | const DownstreamPacket & | pkt | ) |
Processes statistics for an inbound downstream packet
| pkt | Outbound packet |
Definition at line 771 of file commonlayerstatistics.cc.
| void EMANE::Utils::CommonLayerStatistics::processOutbound | ( | const UpstreamPacket & | pkt, |
| Microseconds | delay, | ||
| size_t | dropCode = {} |
||
| ) |
Processes statistics for an outbound upstream packet
| pkt | Inbound packet |
| delay | Processing duration in microseconds |
| dropCode | Drop code label index. Default is no drop. |
Definition at line 763 of file commonlayerstatistics.cc.
| void EMANE::Utils::CommonLayerStatistics::processOutbound | ( | const DownstreamPacket & | pkt, |
| Microseconds | delay, | ||
| size_t | dropCode = {}, |
||
| bool | bSelfGenerated = {} |
||
| ) |
Processes statistics for an outbound downstream packet
| pkt | Inbound packet |
| delay | Processing duration in microseconds |
| dropCode | Drop code label index. Default is no drop. |
| bSelfGenerated | Flag indicating whether the outbound packet was self generated |
Definition at line 777 of file commonlayerstatistics.cc.
| void EMANE::Utils::CommonLayerStatistics::registerStatistics | ( | StatisticRegistrar & | statisticRegistrar | ) |
Registers all statistics and tables
| statisticRegistrar | Statistic registrar reference |
| RegistrarException | when a error occurs during registration. |
Definition at line 751 of file commonlayerstatistics.cc.