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 <mythopenglperf.h>

Inheritance diagram for MythOpenGLPerf:
Inheritance graph
[legend]
Collaboration diagram for MythOpenGLPerf:
Collaboration graph
[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 33 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::Show().

◆ GetTimersRunning()

int MythOpenGLPerf::GetTimersRunning ( void  ) const

Definition at line 34 of file mythopenglperf.cpp.

Referenced by MythVideoOutputOpenGL::PrepareFrame().

Member Data Documentation

◆ m_name

QString MythOpenGLPerf::m_name { }
private

Definition at line 42 of file mythopenglperf.h.

Referenced by LogSamples(), and MythOpenGLPerf().

◆ m_sampleCount

int MythOpenGLPerf::m_sampleCount { 0 }
private

Definition at line 43 of file mythopenglperf.h.

Referenced by LogSamples().

◆ m_totalSamples

int MythOpenGLPerf::m_totalSamples { 30 }
private

Definition at line 44 of file mythopenglperf.h.

Referenced by LogSamples(), and MythOpenGLPerf().

◆ m_timersReady

bool MythOpenGLPerf::m_timersReady { true }
private

Definition at line 45 of file mythopenglperf.h.

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

◆ m_timersRunning

int MythOpenGLPerf::m_timersRunning { 0 }
private

Definition at line 46 of file mythopenglperf.h.

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

◆ m_timerData

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

Definition at line 47 of file mythopenglperf.h.

Referenced by LogSamples(), and MythOpenGLPerf().

◆ m_timerNames

QVector<QString> MythOpenGLPerf::m_timerNames { }
private

Definition at line 48 of file mythopenglperf.h.

Referenced by LogSamples(), and MythOpenGLPerf().


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