summaryrefslogtreecommitdiff
path: root/indra/llcommon/llfasttimer_class.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2010-12-03 15:40:42 -0500
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2010-12-03 15:40:42 -0500
commit2f4a3197bfdb5200d4472343b729fe7ff7eb9225 (patch)
treec7c0d18861dc60e5c05c4c6c0cfbe4b2f71cf045 /indra/llcommon/llfasttimer_class.cpp
parentd529abbfe62c879e4c0e6397e55cc80030b735b8 (diff)
Added timer-related logging during logperformance
Diffstat (limited to 'indra/llcommon/llfasttimer_class.cpp')
-rwxr-xr-x[-rw-r--r--]indra/llcommon/llfasttimer_class.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/llcommon/llfasttimer_class.cpp b/indra/llcommon/llfasttimer_class.cpp
index c084166ccc..0828635881 100644..100755
--- a/indra/llcommon/llfasttimer_class.cpp
+++ b/indra/llcommon/llfasttimer_class.cpp
@@ -501,6 +501,18 @@ void LLFastTimer::NamedTimer::resetFrame()
if (sLog)
{ //output current frame counts to performance log
+ static S32 call_count = 0;
+ if (call_count % 100 == 0)
+ {
+ llinfos << "countsPerSecond (32 bit): " << countsPerSecond() << llendl;
+ llinfos << "get_clock_count (64 bit): " << get_clock_count() << llendl;
+ llinfos << "LLProcessorInfo().getCPUFrequency() " << LLProcessorInfo().getCPUFrequency() << llendl;
+ llinfos << "getCPUClockCount32() " << getCPUClockCount32() << llendl;
+ llinfos << "getCPUClockCount64() " << getCPUClockCount64() << llendl;
+ llinfos << "elapsed sec " << ((F64)getCPUClockCount64())/((F64)LLProcessorInfo().getCPUFrequency()*1000000.0) << llendl;
+ }
+ call_count++;
+
F64 iclock_freq = 1000.0 / countsPerSecond(); // good place to calculate clock frequency
F64 total_time = 0;