diff options
author | Richard Linden <none@none> | 2012-12-09 23:19:11 -0800 |
---|---|---|
committer | Richard Linden <none@none> | 2012-12-09 23:19:11 -0800 |
commit | 8c2e3bea71ea15b805a9e2a288744f10d195d803 (patch) | |
tree | f34c3055b29c92ad037bd0ea8ca0e7a16f1048ad /indra/llcommon/lltrace.h | |
parent | b44c8593a34961f82fb523e42ad13b7e3da00ab6 (diff) |
SH-3406 WIP convert fast timers to lltrace system
added ability to query self time of block timers indepedently
Diffstat (limited to 'indra/llcommon/lltrace.h')
-rw-r--r-- | indra/llcommon/lltrace.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/indra/llcommon/lltrace.h b/indra/llcommon/lltrace.h index 0cb6a84aec..d29d43a92c 100644 --- a/indra/llcommon/lltrace.h +++ b/indra/llcommon/lltrace.h @@ -412,6 +412,11 @@ namespace LLTrace typedef U32 value_t; }; + struct SelfTimeAspect + { + typedef LLUnit<LLUnits::Seconds, F64> value_t; + }; + TimeBlockAccumulator(); void addSamples(const TimeBlockAccumulator& other); void reset(const TimeBlockAccumulator* other); @@ -443,6 +448,18 @@ namespace LLTrace {} }; + template<> + class TraceType<TimeBlockAccumulator::SelfTimeAspect> + : public TraceType<TimeBlockAccumulator> + { + public: + typedef F32 mean_t; + + TraceType(const char* name, const char* description = "") + : TraceType<TimeBlockAccumulator>(name, description) + {} + }; + class TimeBlockTreeNode { public: |