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

#include <jitterometer.h>

Collaboration diagram for Jitterometer:
Collaboration graph
[legend]

Classes

struct  m_starttime
 

Public Member Functions

 Jitterometer (QString nname, int ncycles=0)
 
 ~Jitterometer ()
 
 Jitterometer (const Jitterometer &)=delete
 
Jitterometeroperator= (const Jitterometer &)=delete
 
float GetLastFPS (void) const
 
float GetLastSD (void) const
 
QString GetLastCPUStats (void) const
 
void SetNumCycles (int cycles)
 
bool RecordCycleTime ()
 
void RecordStartTime ()
 
bool RecordEndTime ()
 
QString GetCPUStat (void)
 

Private Attributes

int m_count {0}
 
int m_numCycles
 
bool m_starttimeValid {false}
 
QVector< uintm_times
 
float m_lastFps {0}
 
float m_lastSd {0}
 
QString m_name
 
QFile * m_cpuStat {nullptr}
 
unsigned long long * m_lastStats {nullptr}
 
QString m_lastCpuStats
 

Detailed Description

Definition at line 43 of file jitterometer.h.

Constructor & Destructor Documentation

◆ Jitterometer() [1/2]

Jitterometer::Jitterometer ( QString  nname,
int  ncycles = 0 
)
explicit

Definition at line 20 of file jitterometer.cpp.

◆ ~Jitterometer()

Jitterometer::~Jitterometer ( )

Definition at line 55 of file jitterometer.cpp.

◆ Jitterometer() [2/2]

Jitterometer::Jitterometer ( const Jitterometer )
delete

Member Function Documentation

◆ operator=()

Jitterometer& Jitterometer::operator= ( const Jitterometer )
delete

◆ GetLastFPS()

float Jitterometer::GetLastFPS ( void  ) const
inline

Definition at line 53 of file jitterometer.h.

Referenced by MythPlayer::GetPlaybackData().

◆ GetLastSD()

float Jitterometer::GetLastSD ( void  ) const
inline

Definition at line 54 of file jitterometer.h.

Referenced by MythPlayer::GetPlaybackData().

◆ GetLastCPUStats()

QString Jitterometer::GetLastCPUStats ( void  ) const
inline

Definition at line 55 of file jitterometer.h.

Referenced by MythPlayer::GetPlaybackData().

◆ SetNumCycles()

void Jitterometer::SetNumCycles ( int  cycles)

Definition at line 63 of file jitterometer.cpp.

Referenced by MythPlayer::EnableFrameRateMonitor().

◆ RecordCycleTime()

bool Jitterometer::RecordCycleTime ( )

Definition at line 70 of file jitterometer.cpp.

Referenced by MythPlayer::AVSync().

◆ RecordStartTime()

void Jitterometer::RecordStartTime ( )

Definition at line 139 of file jitterometer.cpp.

Referenced by RecordCycleTime().

◆ RecordEndTime()

bool Jitterometer::RecordEndTime ( )

Definition at line 79 of file jitterometer.cpp.

Referenced by RecordCycleTime().

◆ GetCPUStat()

QString Jitterometer::GetCPUStat ( void  )

Definition at line 147 of file jitterometer.cpp.

Referenced by RecordEndTime().

Member Data Documentation

◆ m_count

int Jitterometer::m_count {0}
private

Definition at line 63 of file jitterometer.h.

Referenced by RecordEndTime(), and SetNumCycles().

◆ m_numCycles

int Jitterometer::m_numCycles
private

◆ m_starttimeValid

bool Jitterometer::m_starttimeValid {false}
private

Definition at line 66 of file jitterometer.h.

Referenced by RecordEndTime(), and RecordStartTime().

◆ m_times

QVector<uint> Jitterometer::m_times
private

Definition at line 67 of file jitterometer.h.

Referenced by Jitterometer(), RecordEndTime(), and SetNumCycles().

◆ m_lastFps

float Jitterometer::m_lastFps {0}
private

Definition at line 68 of file jitterometer.h.

Referenced by RecordEndTime().

◆ m_lastSd

float Jitterometer::m_lastSd {0}
private

Definition at line 69 of file jitterometer.h.

Referenced by RecordEndTime().

◆ m_name

QString Jitterometer::m_name
private

Definition at line 70 of file jitterometer.h.

Referenced by Jitterometer(), and RecordEndTime().

◆ m_cpuStat

QFile* Jitterometer::m_cpuStat {nullptr}
private

Definition at line 71 of file jitterometer.h.

Referenced by GetCPUStat(), Jitterometer(), and ~Jitterometer().

◆ m_lastStats

unsigned long long* Jitterometer::m_lastStats {nullptr}
private

Definition at line 72 of file jitterometer.h.

Referenced by GetCPUStat(), Jitterometer(), and ~Jitterometer().

◆ m_lastCpuStats

QString Jitterometer::m_lastCpuStats
private

Definition at line 73 of file jitterometer.h.

Referenced by RecordEndTime().


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