KySdkProcess(3)
π KySdkProcess β the manual, but make it cute π
okay bestie, so this is page KySdkProcess(3) from the KySdk Process Library, and it's genuinely such a slay. get comfy, we're gonna talk about getting instantaneous, detailed process info via D-Bus signals. π¦
β¨ NAME β¨
KySdkProcess β a D-Bus signal class for generating instantaneous detailed process information. it's mainly used to generate CPU usage of a process, get memory usage rate of a process, get process status, get port number occupied by a process, get process start time, get process running time, get CPU time of a process, get process Command, get process owner, get process information, and get D-Bus signals for all process information. like... she does it ALL. π
πΈ SYNOPSIS πΈ
#include <kysdkdbus.h>
Inherits QObject. yes, she's a Qt girlie. π
π Public Slots
double getProcInfoCpuUsage (int pid) constβ Get CPU usage of a processdouble getProcInfoMemUsage (int pid) constβ Get memory usage rate of a processQString getProcInfoStatus (int pid) constβ Get process statusint getProcInfoPort (int pid) constβ Get port number occupied by a processQString getProcInfoStartTime (int pid) constβ Get process start timeQString getProcInfoRunningTime (int pid) constβ Get process running timeQString getProcInfoCpuTime (int pid) constβ Get CPU time of a processQString getProcInfoCmd (int pid) constβ Get process CommandQString getProcInfoUser (int pid) constβ Get process ownerQStringList getProcInfo (const QString procName) constβ Get process informationQStringList getAllProcInfo () constβ Get all process information
π«Ά Detailed Description π«Ά
D-Bus signal class for generating instantaneous detailed process information. it's mainly used to generate CPU usage of a process, get memory usage rate of a process, get process status, get port number occupied by a process, get process start time, get process running time, get CPU time of a process, get process Command, get process owner, get process information, and get D-Bus signals for all process information.
like, that's the whole vibe: you want the tea on a process? she has it. instantly. β¨
π Public Slots (the main event, fr fr) π
π QStringList KySdkProcess::getAllProcInfo () const [slot]
Get all process information. all of it. every crumb. π
Returns
QStringListβ List of all processes' CPU usage, memory usage rate, status, port number occupation, start time, running time, CPU time, Command, and owner information
π QStringList KySdkProcess::getProcInfo (const QString procName) const [slot]
Get information of a specific process. main character energy only. π
Parameters
procNameβ Process name
Returns
QStringListβ List of process information including CPU usage, memory usage rate, status, port number occupation, start time, running time, CPU time, Command, and owner information
π QString KySdkProcess::getProcInfoCmd (int pid) const [slot]
Get Command of a process.
Parameters
pidβ Process ID
Returns
QStringβ Process Command
π QString KySdkProcess::getProcInfoCpuTime (int pid) const [slot]
Get CPU time of a process.
Parameters
pidβ Process ID
Returns
QStringβ Process CPU time
π double KySdkProcess::getProcInfoCpuUsage (int pid) const [slot]
Get CPU usage of a process.
Parameters
pidβ Process ID
Returns
doubleβ Process CPU usage
π double KySdkProcess::getProcInfoMemUsage (int pid) const [slot]
Get memory usage rate of a process.
Parameters
pidβ Process ID
Returns
doubleβ Process memory usage rate
π int KySdkProcess::getProcInfoPort (int pid) const [slot]
Get port number occupied by a process.
Parameters
pidβ Process ID
Returns
intβ Port number used by the process
π QString KySdkProcess::getProcInfoRunningTime (int pid) const [slot]
Get running time of a process.
Parameters
pidβ Process ID
Returns
QStringβ Process running time
π QString KySdkProcess::getProcInfoStartTime (int pid) const [slot]
Get start time of a process.
Parameters
pidβ Process ID
Returns
QStringβ Process start time
π QString KySdkProcess::getProcInfoStatus (int pid) const [slot]
Get process status.
Parameters
pidβ Process ID
Returns
QStringβ Process status
π QString KySdkProcess::getProcInfoUser (int pid) const [slot]
Get owner of a process.
Parameters
pidβ Process ID
Returns
QStringβ Process owner
π Author π
Generated automatically by Doxygen for kysdkdbus.h from the source code. (not a human author, just Doxygen doing her little thing, and honestly? she ate. π)
and that's the whole page, bestie!! π this was version 1.0, dated Wed Sep 20 2023, and yes, we're still on page KySdkProcess(3) β same girl, same library, same slay. now go get that process info, iykyk. π§β¨π
π¦ where this page comes from
- arch rolling: libkysdk-system 3.0.1.4-1 Β· LGPL-3.0-or-later AND LGPL-2.1-only OR LGPL-3.0-only AND LGPL-2.1-only WITH Qt-LGPL-exception-1.1 OR LGPL-3.0-only WITH Qt-LGPL-exception-1.1 AND MIT
- ubuntu resolute: libkysdk-system-dev 3.0.1.2-0ubuntu1 Β· LGPL-3.0-only
- ubuntu stonking: libkysdk-system-dev 3.0.1.3-0ubuntu1 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms