10 #define MAX_SAMPLES 3600
20 static QString
code(QString nodename, QString libname, QString &error);
25 virtual QByteArray
icon();
A common base class for all things that want to act like an application or include ACL support.
The base class for all requests between nodes.
A VFS_application plugin for reporting CPU and RAM usage over time.
QJsonObject _cpu_diff
The CPU diff.
int _processors
The number of processors available on this machine.
virtual QByteArray icon()
Return the icon.
void getRAMSample(quint64 t)
Get a RAM sample.
QList< QPair< quint64, double > > _ramSamples
The RAM samples recorded.
virtual void metadata(VFS_request *r)
Fetch the metadata of this node.
virtual void initialize()
Start the sample timer.
QJsonObject _req_diff
The VFS_request sample diff.
float _scale
The amount to scale processor values.
void getREQSample(quint64 t)
Take a sample of the current VFS_request::_refcount.
static QString code(QString nodename, QString libname, QString &error)
Fetch code from this node.
QString runCommand(QString which)
Execute a shell command to gather sample data.
QList< QPair< quint64, quint16 > > _reqSamples
The VFS_request count sample recorded.
bool isContainer()
This is always false.
virtual void read(VFS_request *r)
Return the data contents of this node, or if it's a container call ls()
Q_INVOKABLE cpuUsage()
The cpuUsage constructor.
QString _kernel
The kernel string reported by Qt.
QList< QPair< quint64, double > > _cpuSamples
The CPU samples recorded.
void timerEvent(QTimerEvent *event)
Gather the CPU and RAM samples.
void getCPUSample(quint64 t)
Get a CPU sample.
QJsonObject _ram_diff
The RAM diff.