KD Chart 2  [rev.2.7]
Macros | Variables
KDChartTextLabelCache.cpp File Reference
#include "KDChartTextLabelCache.h"
#include <cmath>
#include <QtDebug>
#include <QImage>
#include <QPixmap>
#include <QPainter>
#include <QApplication>

Go to the source code of this file.

Macros

#define DUMP_CACHE_STATS
 
#define INC_HIT_COUNT   { ++HitCount; }
 
#define INC_MISS_COUNT   { ++MissCount; }
 

Variables

int HitCount = 0
 
int MissCount = 0
 

Macro Definition Documentation

#define DUMP_CACHE_STATS
Value:
if ( HitCount != 0 && MissCount != 0 ) { \
int total = HitCount + MissCount; \
qreal hitQuote = ( 1.0 * HitCount ) / total; \
qDebug() << "PrerenderedLabel dtor: hits/misses/total:" \
<< HitCount << "/" << MissCount << "/" << total \
<< "(" << 100 * hitQuote << "% hits)"; \
}
int MissCount
int HitCount

Definition at line 38 of file KDChartTextLabelCache.cpp.

Referenced by PrerenderedLabel::~PrerenderedLabel().

#define INC_HIT_COUNT   { ++HitCount; }
#define INC_MISS_COUNT   { ++MissCount; }

Variable Documentation

int HitCount = 0

Definition at line 34 of file KDChartTextLabelCache.cpp.

int MissCount = 0

Definition at line 35 of file KDChartTextLabelCache.cpp.


Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/

https://www.kdab.com/development-resources/qt-tools/kd-chart/