diff options
Diffstat (limited to 'indra/llmessage/llpacketring.h')
| -rw-r--r-- | indra/llmessage/llpacketring.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/llmessage/llpacketring.h b/indra/llmessage/llpacketring.h index 0dff2c63b1..237efc12e0 100644 --- a/indra/llmessage/llpacketring.h +++ b/indra/llmessage/llpacketring.h @@ -62,6 +62,9 @@ public: S32 getNumBufferedPackets() const { return (S32)(mNumBufferedPackets); } S32 getNumBufferedBytes() const { return mNumBufferedBytes; } + S32 getNumDroppedPackets() const { return mNumDroppedPacketsTotal + mNumDroppedPackets; } + + void dumpPacketRingStats(); protected: // returns 'true' if we should intentionally drop a packet bool computeDrop(); @@ -80,6 +83,8 @@ protected: std::vector<LLPacketBuffer*> mPacketRing; S16 mHeadIndex { 0 }; S16 mNumBufferedPackets { 0 }; + S32 mNumDroppedPackets { 0 }; + S32 mNumDroppedPacketsTotal { 0 }; S32 mNumBufferedBytes { 0 }; S32 mActualBytesIn { 0 }; |
