diff options
| author | Richard Linden <none@none> | 2013-04-11 06:38:03 -0700 | 
|---|---|---|
| committer | Richard Linden <none@none> | 2013-04-11 06:38:03 -0700 | 
| commit | 49933aadb1b7044e947575bc377b34826e94fe99 (patch) | |
| tree | 809188c0f672977356b3229845e73c7cb5a12c9e | |
| parent | 07ca6fce7c9cffe1b8f215f25bb826fedf57a5b7 (diff) | |
SH-3931 WIP Interesting: Add graphs to visualize scene load metrics
removed MeanValueType<T>
| -rw-r--r-- | indra/llcommon/lltrace.h | 31 | ||||
| -rw-r--r-- | indra/llcommon/lltracerecording.h | 8 | ||||
| -rw-r--r-- | indra/newview/llviewertexturelist.cpp | 2 | 
3 files changed, 6 insertions, 35 deletions
| diff --git a/indra/llcommon/lltrace.h b/indra/llcommon/lltrace.h index a574be02da..376248c87a 100644 --- a/indra/llcommon/lltrace.h +++ b/indra/llcommon/lltrace.h @@ -231,15 +231,6 @@ private:  template<typename ACCUMULATOR> size_t AccumulatorBuffer<ACCUMULATOR>::sNextStorageSlot = 0; - - -//TODO: replace with decltype when C++11 is enabled -template<typename T> -struct MeanValueType -{ -	typedef F64 type; -}; -  template<typename ACCUMULATOR>  class TraceType   :	 public LLInstanceTracker<TraceType<ACCUMULATOR>, std::string> @@ -382,6 +373,7 @@ private:  	U32	mNumSamples;  }; +  template<typename T>  class CountAccumulator  { @@ -457,13 +449,6 @@ public:  }; - -template<> -struct MeanValueType<TraceType<TimeBlockAccumulator> > -{ -	typedef LLUnit<LLUnits::Seconds, F64> type; -}; -  template<>  class TraceType<TimeBlockAccumulator::CallCountAspect>  :	public TraceType<TimeBlockAccumulator> @@ -476,13 +461,6 @@ public:  };  template<> -struct MeanValueType<TraceType<TimeBlockAccumulator::CallCountAspect> > -{ -	typedef F64 type; -}; - - -template<>  class TraceType<TimeBlockAccumulator::SelfTimeAspect>  	:	public TraceType<TimeBlockAccumulator>  { @@ -493,13 +471,6 @@ public:  	{}  }; -template<> -struct MeanValueType<TraceType<TimeBlockAccumulator::SelfTimeAspect> > -{ -	typedef LLUnit<LLUnits::Seconds, F64> type; -}; - -  class TimeBlock;  class TimeBlockTreeNode  { diff --git a/indra/llcommon/lltracerecording.h b/indra/llcommon/lltracerecording.h index 0a3e9e5a0b..9ebcbdd8ce 100644 --- a/indra/llcommon/lltracerecording.h +++ b/indra/llcommon/lltracerecording.h @@ -345,9 +345,9 @@ namespace LLTrace  		}  		template <typename T> -		typename MeanValueType<TraceType<T> >::type getPeriodMean(const TraceType<T>& stat) const +		typename T::value_t getPeriodMean(const TraceType<T>& stat) const  		{ -			typename MeanValueType<TraceType<T> >::type mean = 0.0; +			typename T::value_t mean = 0.0;  			U32 num_periods = mRecordingPeriods.size();  			for (S32 i = 0; i < num_periods; i++)  			{ @@ -361,9 +361,9 @@ namespace LLTrace  		}  		template <typename T> -		typename MeanValueType<TraceType<T> >::type getPeriodMeanPerSec(const TraceType<T>& stat) const +		typename T::value_t getPeriodMeanPerSec(const TraceType<T>& stat) const  		{ -			typename MeanValueType<TraceType<T> >::type mean = 0.0; +			typename T::value_t mean = 0.0;  			U32 num_periods = mRecordingPeriods.size();  			for (S32 i = 0; i < num_periods; i++)  			{ diff --git a/indra/newview/llviewertexturelist.cpp b/indra/newview/llviewertexturelist.cpp index 1bb4041bbd..ae677f541b 100644 --- a/indra/newview/llviewertexturelist.cpp +++ b/indra/newview/llviewertexturelist.cpp @@ -617,7 +617,7 @@ void LLViewerTextureList::updateImages(F32 max_time)  	}  	cleared = FALSE; -	LLAppViewer::getTextureFetch()->setTextureBandwidth(LLTrace::get_frame_recording().getPeriodMeanPerSec(LLStatViewer::TEXTURE_KBIT).value()); +	LLAppViewer::getTextureFetch()->setTextureBandwidth(LLTrace::get_frame_recording().getPeriodMeanPerSec(LLStatViewer::TEXTURE_KBIT));  	{  		using namespace LLStatViewer; | 
