summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkarsh Simha <akarsh@kde.org>2016-09-25 11:59:47 (GMT)
committerAkarsh Simha <akarsh@kde.org>2016-09-28 22:16:21 (GMT)
commit5a9c6a424624b50fb071e171508cda5e4d565bab (patch)
treea51a2862944022bf9368708dfdef76a9099a0d3a
parentd9ec631bf8e4e5e2e09b991e82288499b954113f (diff)
Show global number of bad CachingDms uses
-rw-r--r--kstars/kstars.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/kstars/kstars.cpp b/kstars/kstars.cpp
index af32eda..8754873 100644
--- a/kstars/kstars.cpp
+++ b/kstars/kstars.cpp
@@ -185,6 +185,7 @@ KStars::~KStars()
#ifdef COUNT_DMS_SINCOS_CALLS
qDebug() << "Constructed " << dms::dms_constructor_calls << " dms objects, of which " << dms::dms_with_sincos_called << " had trigonometric functions called on them = " << ( float( dms::dms_with_sincos_called ) / float( dms::dms_constructor_calls ) ) * 100. << "%";
qDebug() << "Of the " << dms::trig_function_calls << " calls to sin/cos/sincos on dms objects, " << dms::redundant_trig_function_calls << " were redundant = " << ( ( float( dms::redundant_trig_function_calls ) / float( dms::trig_function_calls ) ) * 100. ) << "%";
+ qDebug() << "We had " << CachingDms::cachingdms_bad_uses << " bad uses of CachingDms in all, compared to " << CachingDms::cachingdms_constructor_calls << " constructed CachingDms objects = " << ( float( CachingDms::cachingdms_bad_uses ) / float( CachingDms::cachingdms_constructor_calls ) ) * 100. << "% bad uses";
#endif
}