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

#include <jitterometer.h>

Collaboration diagram for Jitterometer:
Collaboration graph
[legend]

Public Member Functions

 Jitterometer (const QString &nname, int ncycles=0)
 
 ~Jitterometer ()
 
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 Member Functions

 Jitterometer (const Jitterometer &)=delete
 
Jitterometeroperator= (const Jitterometer &)=delete
 

Private Attributes

int m_count {0}
 
int m_num_cycles
 
struct timeval m_starttime
 
bool m_starttime_valid {false}
 
QVector< uintm_times
 
float m_last_fps {0}
 
float m_last_sd {0}
 
QString m_name
 
QFile * m_cpustat {nullptr}
 
unsigned long long * m_laststats {nullptr}
 
QString m_lastcpustats
 

Detailed Description

Definition at line 37 of file jitterometer.h.

Constructor & Destructor Documentation

◆ Jitterometer() [1/2]

Jitterometer::Jitterometer ( const QString &  nname,
int  ncycles = 0 
)

Definition at line 11 of file jitterometer.cpp.

◆ ~Jitterometer()

Jitterometer::~Jitterometer ( )

Definition at line 41 of file jitterometer.cpp.

◆ Jitterometer() [2/2]

Jitterometer::Jitterometer ( const Jitterometer )
privatedelete

Member Function Documentation

◆ GetLastFPS()

float Jitterometer::GetLastFPS ( void  ) const
inline

Definition at line 43 of file jitterometer.h.

Referenced by MythPlayer::GetPlaybackData().

◆ GetLastSD()

float Jitterometer::GetLastSD ( void  ) const
inline

Definition at line 44 of file jitterometer.h.

Referenced by MythPlayer::GetPlaybackData().

◆ GetLastCPUStats()

QString Jitterometer::GetLastCPUStats ( void  ) const
inline

Definition at line 45 of file jitterometer.h.

Referenced by MythPlayer::GetPlaybackData().

◆ SetNumCycles()

void Jitterometer::SetNumCycles ( int  cycles)

Definition at line 49 of file jitterometer.cpp.

Referenced by MythPlayer::EnableFrameRateMonitor().

◆ RecordCycleTime()

bool Jitterometer::RecordCycleTime ( )

◆ RecordStartTime()

void Jitterometer::RecordStartTime ( )

Definition at line 127 of file jitterometer.cpp.

Referenced by RecordCycleTime().

◆ RecordEndTime()

bool Jitterometer::RecordEndTime ( )

Definition at line 65 of file jitterometer.cpp.

Referenced by RecordCycleTime().

◆ GetCPUStat()

QString Jitterometer::GetCPUStat ( void  )

Definition at line 135 of file jitterometer.cpp.

Referenced by RecordEndTime().

◆ operator=()

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

Member Data Documentation

◆ m_count

int Jitterometer::m_count {0}
private

Definition at line 56 of file jitterometer.h.

Referenced by RecordEndTime(), and SetNumCycles().

◆ m_num_cycles

int Jitterometer::m_num_cycles
private

◆ m_starttime

struct timeval Jitterometer::m_starttime
private

Definition at line 58 of file jitterometer.h.

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

◆ m_starttime_valid

bool Jitterometer::m_starttime_valid {false}
private

Definition at line 59 of file jitterometer.h.

Referenced by RecordEndTime(), and RecordStartTime().

◆ m_times

QVector<uint> Jitterometer::m_times
private

Definition at line 60 of file jitterometer.h.

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

◆ m_last_fps

float Jitterometer::m_last_fps {0}
private

Definition at line 61 of file jitterometer.h.

Referenced by RecordEndTime().

◆ m_last_sd

float Jitterometer::m_last_sd {0}
private

Definition at line 62 of file jitterometer.h.

Referenced by RecordEndTime().

◆ m_name

QString Jitterometer::m_name
private

Definition at line 63 of file jitterometer.h.

Referenced by Jitterometer(), and RecordEndTime().

◆ m_cpustat

QFile* Jitterometer::m_cpustat {nullptr}
private

Definition at line 64 of file jitterometer.h.

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

◆ m_laststats

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

Definition at line 65 of file jitterometer.h.

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

◆ m_lastcpustats

QString Jitterometer::m_lastcpustats
private

Definition at line 66 of file jitterometer.h.

Referenced by RecordEndTime().


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