diff options
author | Richard Linden <none@none> | 2013-10-17 14:28:08 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2013-10-17 14:28:08 -0700 |
commit | 92c4677a840417546e95b474a4f78ca8d86fc5ba (patch) | |
tree | 6d46d1868d56a0b59d88accebda4b58cb43c7be8 /indra/llcommon/llfasttimer.cpp | |
parent | 2b4dfefda216a0333426ac2a8f06d23ee6ef0aee (diff) | |
parent | 1beaedacadc8093c9df612992a873f9c89354bce (diff) |
Automated merge with bundle:c:\code\viewer-interesting+c:\users\richard\appdata\local\temp\thg._vi9rd\http__bitbucket.org_lindenlab_viewer-interesting_s1et2g.hg
Diffstat (limited to 'indra/llcommon/llfasttimer.cpp')
-rwxr-xr-x | indra/llcommon/llfasttimer.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/indra/llcommon/llfasttimer.cpp b/indra/llcommon/llfasttimer.cpp index 2db44adacf..d97fa74c24 100755 --- a/indra/llcommon/llfasttimer.cpp +++ b/indra/llcommon/llfasttimer.cpp @@ -131,10 +131,10 @@ struct SortTimerByName } }; +static BlockTimerStatHandle sRootTimer("root", NULL); BlockTimerStatHandle& BlockTimerStatHandle::getRootTimeBlock() { - static BlockTimerStatHandle root_timer("root", NULL); - return root_timer; + return sRootTimer; } void BlockTimerStatHandle::pushLog(LLSD log) @@ -333,6 +333,11 @@ std::vector<BlockTimerStatHandle*>& BlockTimerStatHandle::getChildren() return getTreeNode().mChildren; } +bool BlockTimerStatHandle::hasChildren() +{ + return ! getTreeNode().mChildren.empty(); +} + // static void BlockTimerStatHandle::logStats() { |