Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorShell::SystemStatsReader Class Reference

#include <PhosphorShell/SystemStatsReader.h>

Public Member Functions

 SystemStatsReader (const QString &procRoot=QStringLiteral("/proc"), const QString &sysRoot=QStringLiteral("/sys"))
 ~SystemStatsReader ()
QVariantMap sample ()
void resetRates ()

Static Public Member Functions

static QVariantMap memoryFrom (const QByteArray &content)
static double counterRate (quint64 previous, quint64 current, double seconds)

Constructor & Destructor Documentation

◆ SystemStatsReader()

PhosphorShell::SystemStatsReader::SystemStatsReader ( const QString & procRoot = QStringLiteral("/proc"),
const QString & sysRoot = QStringLiteral("/sys") )
explicit

◆ ~SystemStatsReader()

PhosphorShell::SystemStatsReader::~SystemStatsReader ( )

Member Function Documentation

◆ counterRate()

double PhosphorShell::SystemStatsReader::counterRate ( quint64 previous,
quint64 current,
double seconds )
static

◆ memoryFrom()

QVariantMap PhosphorShell::SystemStatsReader::memoryFrom ( const QByteArray & content)
static

◆ resetRates()

void PhosphorShell::SystemStatsReader::resetRates ( )

◆ sample()

QVariantMap PhosphorShell::SystemStatsReader::sample ( )

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