summaryrefslogtreecommitdiff
path: root/indra/llmessage/llpacketring.h
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2025-03-04 19:55:55 +0200
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2025-03-04 21:15:15 +0200
commit3efe5b493442f2b90ffbb571d8fa24c8ab17bf5e (patch)
tree75c85a5a5fc86f08573dd54508d17e9f1b0af2a4 /indra/llmessage/llpacketring.h
parentc98002daa68163563b6c946a6d26c4c8b74176ae (diff)
#3644 Fix new logging of packet drops hitting performance
Diffstat (limited to 'indra/llmessage/llpacketring.h')
-rw-r--r--indra/llmessage/llpacketring.h5
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 };