summaryrefslogtreecommitdiff
path: root/indra/newview/llavatarrenderinfoaccountant.h
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2014-12-15 15:59:49 -0500
committerOz Linden <oz@lindenlab.com>2014-12-15 15:59:49 -0500
commitfe627f64742cbec698df0a907cb8aaea297df599 (patch)
tree521713fb9aca6b4ae69df8358041146bdc8cb6ae /indra/newview/llavatarrenderinfoaccountant.h
parent8f5ddebf0abfbcf73f25313214b06b98f2c7889c (diff)
MAINT-4716: correct reading of and debug display for avatar render cost info
Diffstat (limited to 'indra/newview/llavatarrenderinfoaccountant.h')
-rw-r--r--indra/newview/llavatarrenderinfoaccountant.h33
1 files changed, 22 insertions, 11 deletions
diff --git a/indra/newview/llavatarrenderinfoaccountant.h b/indra/newview/llavatarrenderinfoaccountant.h
index 62c899f7a4..8117c18f4d 100644
--- a/indra/newview/llavatarrenderinfoaccountant.h
+++ b/indra/newview/llavatarrenderinfoaccountant.h
@@ -33,22 +33,33 @@ class LLViewerRegion;
// Class to gather avatar rendering information
// that is sent to or fetched from regions.
-class LLAvatarRenderInfoAccountant
+class LLAvatarRenderInfoAccountant : public LLSingleton<LLAvatarRenderInfoAccountant>
{
-public:
- LLAvatarRenderInfoAccountant() {};
- ~LLAvatarRenderInfoAccountant() {};
+ private:
+ LOG_CLASS(LLAvatarRenderInfoAccountant);
- static void sendRenderInfoToRegion(LLViewerRegion * regionp);
- static void getRenderInfoFromRegion(LLViewerRegion * regionp);
+ public:
+ LLAvatarRenderInfoAccountant();
+ ~LLAvatarRenderInfoAccountant();
- static void expireRenderInfoReportTimer(const LLUUID& region_id);
+ void sendRenderInfoToRegion(LLViewerRegion * regionp);
+ void getRenderInfoFromRegion(LLViewerRegion * regionp);
- static void idle();
+ void idle(); // called once per frame
-private:
- // Send data updates about once per minute, only need per-frame resolution
- static LLFrameTimer sRenderInfoReportTimer;
+ void resetRenderInfoScanTimer();
+
+ static void scanNewRegion(const LLUUID& region_id);
+
+ private:
+ // frequency of region scans,
+ // further limited by per region Request and Report timers
+ LLFrameTimer mRenderInfoScanTimer;
+
+ //
+ LLCore::HttpRequest* mHttpRequest;
+ LLCore::HttpHeaders* mHttpHeaders;
+ LLCore::HttpOptions* mHttpOptions;
};
#endif /* ! defined(LL_llavatarrenderinfoaccountant_H) */