From c0e16b28001e4b34511d84537155f0c8b9d692d7 Mon Sep 17 00:00:00 2001 From: "Graham Linden graham@lindenlab.com" Date: Wed, 11 Apr 2018 20:14:33 +0100 Subject: Add stats for tex cache read / decode / fetch latency for comparison of old cache code with TCO. --- indra/newview/lltexturefetch.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'indra/newview/lltexturefetch.h') diff --git a/indra/newview/lltexturefetch.h b/indra/newview/lltexturefetch.h index cfa312ccd9..a2155bde1f 100644 --- a/indra/newview/lltexturefetch.h +++ b/indra/newview/lltexturefetch.h @@ -308,13 +308,16 @@ public: S32 mPacketCount; S32 mBadPacketCount; + static LLTrace::CountStatHandle sCacheHit; + static LLTrace::CountStatHandle sCacheAttempt; + static LLTrace::SampleStatHandle sCacheReadLatency; + static LLTrace::SampleStatHandle sTexDecodeLatency; + static LLTrace::SampleStatHandle sTexFetchLatency; + private: LLMutex mQueueMutex; //to protect mRequestMap and mCommands only LLMutex mNetworkQueueMutex; //to protect mNetworkQueue, mHTTPTextureQueue and mCancelQueue. - static LLTrace::EventStatHandle > sCacheHitRate; - static LLTrace::EventStatHandle sCacheReadLatency; - LLTextureCache* mTextureCache; LLImageDecodeThread* mImageDecodeThread; -- cgit v1.2.3