diff options
author | Monty Brandenberg <monty@lindenlab.com> | 2010-11-23 13:31:22 -0500 |
---|---|---|
committer | Monty Brandenberg <monty@lindenlab.com> | 2010-11-23 13:31:22 -0500 |
commit | 9ec3334184c71879c2f8bd0f27095b71c4302559 (patch) | |
tree | 138462ba2785560f9321acee5e68b11645ed3878 /indra/newview/llviewerassetstats.h | |
parent | f98a622325d8982d32ae98e189f5d3ec6ada183f (diff) |
ESC-154 ESC-156 Data collection and control for viewer metrics
Detect QAMode (and new QAModeMetricsSubmode) settings which
enable logging of metrics report locally and a faster cycle
time to reduce test waiting. Do this only in the main thread
and propagate the result via collector constructors (will
likely move that out and put it in llappviewer/lltexturefetch
which is more correct scope). Managed to deadlock myself with
a recursive mutex (sheesh).
Diffstat (limited to 'indra/newview/llviewerassetstats.h')
-rw-r--r-- | indra/newview/llviewerassetstats.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/indra/newview/llviewerassetstats.h b/indra/newview/llviewerassetstats.h index cb63b9c511..1668a1bc9d 100644 --- a/indra/newview/llviewerassetstats.h +++ b/indra/newview/llviewerassetstats.h @@ -140,7 +140,7 @@ public: }; public: - LLViewerAssetStats(); + LLViewerAssetStats(bool qa_mode); // Default destructor is correct. LLViewerAssetStats & operator=(const LLViewerAssetStats &); // Not defined @@ -196,6 +196,10 @@ public: // level. The "regions" information must be correctly formed or the // final result is undefined (little defensive action). static void mergeRegionsLLSD(const LLSD & src, LLSD & dst); + + // QA mode is established during initialization so we don't + // touch LLSD at runtime. + bool isQAMode() const { return mQAMode; } protected: typedef std::map<LLUUID, LLPointer<PerRegionStats> > PerRegionContainer; @@ -215,6 +219,9 @@ protected: // Time of last reset duration_t mResetTimestamp; + + // QA Mode + const bool mQAMode; }; @@ -245,7 +252,7 @@ namespace LLViewerAssetStatsFF * you'll likely get away with calling it afterwards. cleanup() should only be * called after threads are shutdown to prevent races on the global pointers. */ -void init(); +void init(bool qa_mode); void cleanup(); @@ -298,5 +305,4 @@ void merge_stats(const LLSD & src, LLSD & dst); } // namespace LLViewerAssetStatsFF - -#endif // LL_LLVIEWERASSETSTATUS_H +#endif // LL_LLVIEWERASSETSTATUS_H |