diff options
author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2010-12-03 15:40:42 -0500 |
---|---|---|
committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2010-12-03 15:40:42 -0500 |
commit | 2f4a3197bfdb5200d4472343b729fe7ff7eb9225 (patch) | |
tree | c7c0d18861dc60e5c05c4c6c0cfbe4b2f71cf045 /indra/llcommon/llfasttimer_class.cpp | |
parent | d529abbfe62c879e4c0e6397e55cc80030b735b8 (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.cpp | 12 |
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; |