summaryrefslogtreecommitdiff
path: root/indra/llcommon
diff options
context:
space:
mode:
authorRichard Linden <none@none>2012-12-07 15:26:59 -0800
committerRichard Linden <none@none>2012-12-07 15:26:59 -0800
commitc8c14ac72db3374cbd43893e5a97d98817cde0a3 (patch)
tree55c734f30779b6255505f980541e61fd52c99171 /indra/llcommon
parentc99886d94389babc78e92bbfa5084fdd785915af (diff)
SH-3406 WIP convert fast timers to lltrace system
potential fixes for gcc builds
Diffstat (limited to 'indra/llcommon')
-rw-r--r--indra/llcommon/lltrace.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/indra/llcommon/lltrace.h b/indra/llcommon/lltrace.h
index 25d95d9670..0cb6a84aec 100644
--- a/indra/llcommon/lltrace.h
+++ b/indra/llcommon/lltrace.h
@@ -223,7 +223,7 @@ namespace LLTrace
typedef typename MeanValueType<TraceType<ACCUMULATOR> >::type mean_t;
TraceType(const char* name, const char* description = NULL)
- : LLInstanceTracker(name),
+ : LLInstanceTracker<TraceType<ACCUMULATOR>, std::string>(name),
mName(name),
mDescription(description ? description : "")
{
@@ -459,16 +459,17 @@ namespace LLTrace
{
public:
typedef typename LLUnits::HighestPrecisionType<T>::type_t storage_t;
+ typedef TraceType<MeasurementAccumulator<typename LLUnits::HighestPrecisionType<T>::type_t> > trace_t;
Measurement(const char* name, const char* description = NULL)
- : TraceType(name, description)
+ : trace_t(name, description)
{}
template<typename UNIT_T>
void sample(UNIT_T value)
{
T converted_value(value);
- getPrimaryAccumulator().sample(LLUnits::rawValue(converted_value));
+ trace_t::getPrimaryAccumulator().sample(LLUnits::rawValue(converted_value));
}
};
@@ -478,16 +479,17 @@ namespace LLTrace
{
public:
typedef typename LLUnits::HighestPrecisionType<T>::type_t storage_t;
+ typedef TraceType<CountAccumulator<typename LLUnits::HighestPrecisionType<T>::type_t> > trace_t;
Count(const char* name, const char* description = NULL)
- : TraceType(name)
+ : trace_t(name)
{}
template<typename UNIT_T>
void add(UNIT_T value)
{
T converted_value(value);
- getPrimaryAccumulator().add(LLUnits::rawValue(converted_value));
+ trace_t::getPrimaryAccumulator().add(LLUnits::rawValue(converted_value));
}
};
}