MythTV  master
Public Member Functions | Private Attributes | List of all members
MythOpenGLPerf Class Reference

A simple overload of QOpenGLTimeMonitor to record and log OpenGL execution intervals. More...

#include <libmythui/opengl/mythopenglperf.h>

Inheritance diagram for MythOpenGLPerf:
[legend]
Collaboration diagram for MythOpenGLPerf:
[legend]

Public Member Functions

 MythOpenGLPerf (QString Name, QVector< QString > Names, int SampleCount=30)
 
void RecordSample (void)
 
void LogSamples (void)
 
int GetTimersRunning (void) const
 

Private Attributes

QString m_name
 
int m_sampleCount { 0 }
 
int m_totalSamples { 30 }
 
bool m_timersReady { true }
 
int m_timersRunning { 0 }
 
QVector< GLuint64 > m_timerData { 0 }
 
QVector< QString > m_timerNames
 

Detailed Description

A simple overload of QOpenGLTimeMonitor to record and log OpenGL execution intervals.

Definition at line 37 of file mythopenglperf.h.

Constructor & Destructor Documentation

◆ MythOpenGLPerf()

MythOpenGLPerf::MythOpenGLPerf ( QString  Name,
QVector< QString >  Names,
int  SampleCount = 30 
)

Definition at line 12 of file mythopenglperf.cpp.

Member Function Documentation

◆ RecordSample()

void MythOpenGLPerf::RecordSample ( void  )

◆ LogSamples()

void MythOpenGLPerf::LogSamples ( void  )

Definition at line 48 of file mythopenglperf.cpp.

Referenced by MythVideoOutputOpenGL::EndFrame().

◆ GetTimersRunning()

int MythOpenGLPerf::GetTimersRunning ( void  ) const

Definition at line 34 of file mythopenglperf.cpp.

Referenced by MythVideoOutputOpenGL::RenderFrame().

Member Data Documentation

◆ m_name

QString MythOpenGLPerf::m_name
private

Definition at line 46 of file mythopenglperf.h.

Referenced by LogSamples(), and MythOpenGLPerf().

◆ m_sampleCount

int MythOpenGLPerf::m_sampleCount { 0 }
private

Definition at line 47 of file mythopenglperf.h.

Referenced by LogSamples().

◆ m_totalSamples

int MythOpenGLPerf::m_totalSamples { 30 }
private

Definition at line 48 of file mythopenglperf.h.

Referenced by LogSamples(), and MythOpenGLPerf().

◆ m_timersReady

bool MythOpenGLPerf::m_timersReady { true }
private

Definition at line 49 of file mythopenglperf.h.

Referenced by LogSamples(), MythOpenGLPerf(), and RecordSample().

◆ m_timersRunning

int MythOpenGLPerf::m_timersRunning { 0 }
private

Definition at line 50 of file mythopenglperf.h.

Referenced by GetTimersRunning(), LogSamples(), and RecordSample().

◆ m_timerData

QVector<GLuint64> MythOpenGLPerf::m_timerData { 0 }
private

Definition at line 51 of file mythopenglperf.h.

Referenced by LogSamples(), and MythOpenGLPerf().

◆ m_timerNames

QVector<QString> MythOpenGLPerf::m_timerNames
private

Definition at line 52 of file mythopenglperf.h.

Referenced by LogSamples(), and MythOpenGLPerf().


The documentation for this class was generated from the following files: