KySdkProcess(3)

πŸ“¦ version 3.0.1.4, in arch rolling, ubuntu resolute, ubuntu stonking

πŸ’– 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 process
  • double getProcInfoMemUsage (int pid) const β€” Get memory usage rate of a process
  • QString getProcInfoStatus (int pid) const β€” Get process status
  • int getProcInfoPort (int pid) const β€” Get port number occupied by a process
  • QString getProcInfoStartTime (int pid) const β€” Get process start time
  • QString getProcInfoRunningTime (int pid) const β€” Get process running time
  • QString getProcInfoCpuTime (int pid) const β€” Get CPU time of a process
  • QString getProcInfoCmd (int pid) const β€” Get process Command
  • QString getProcInfoUser (int pid) const β€” Get process owner
  • QStringList getProcInfo (const QString procName) const β€” Get process information
  • QStringList 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