13 QVector<QString> Names,
16 m_totalSamples(SampleCount),
17 m_timerNames(
std::move(Names))
25 LOG(VB_GENERAL, LOG_WARNING,
m_name +
"Failed to initialise OpenGL timers");
30 LOG(VB_GENERAL, LOG_INFO,
m_name + QString(
"Created %1 GL timers- averaging over %2 samples")
50 if (!(isCreated() && isResultAvailable()))
57 QVector<GLuint64>
samples = waitForIntervals();
62 LOG(VB_GENERAL, LOG_ERR,
m_name +
"Incorrect sample count %1 %2 %3");
69 for (
int i = 0; i <
samples.size(); ++i)
85 QString(
" Total fps: %1").arg(1000000000.0 / (
static_cast<double>(total) /
m_sampleCount)));
QVector< GLuint64 > m_timerData
MythOpenGLPerf(QString Name, QVector< QString > Names, int SampleCount=30)
int GetTimersRunning(void) const
QVector< QString > m_timerNames
static const std::array< const uint64_t, 4 > samples
#define LOG(_MASK_, _LEVEL_, _QSTRING_)