Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CPosixResourceCounter Class Reference

#include <PosixResourceCounter.h>

Public Member Functions

 CPosixResourceCounter ()
 
virtual ~CPosixResourceCounter ()
 
double GetCPUUsage ()
 
void Reset ()
 

Protected Attributes

struct rusage m_usage
 
struct timeval m_tmLastCheck
 
double m_dLastUsage
 

Constructor & Destructor Documentation

◆ CPosixResourceCounter()

CPosixResourceCounter::CPosixResourceCounter ( )

◆ ~CPosixResourceCounter()

CPosixResourceCounter::~CPosixResourceCounter ( )
virtualdefault

Member Function Documentation

◆ GetCPUUsage()

double CPosixResourceCounter::GetCPUUsage ( )

◆ Reset()

void CPosixResourceCounter::Reset ( )

Member Data Documentation

◆ m_dLastUsage

double CPosixResourceCounter::m_dLastUsage
protected

◆ m_tmLastCheck

struct timeval CPosixResourceCounter::m_tmLastCheck
protected

◆ m_usage

struct rusage CPosixResourceCounter::m_usage
protected

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