4#ifndef DPROCESSDEVICE_H
5#define DPROCESSDEVICE_H
7#include "dtkdevice_global.h"
11DDEVICE_BEGIN_NAMESPACE
13class DProcessDevicePrivate;
86 QScopedPointer<DProcessDevicePrivate> d_ptr;
应用信息.
Definition: dprocessdevice.h:15
DProcessNetworkInfo networkInfo(pid_t pid)
获取指定应用的网络信息.
QString groupName(const gid_t &gid)
获取指定组的名称.
DProcessBaseInfo baseInfo(pid_t pid)
获取指定应用的基本信息.
DProcessMemoryInfo memoryInfo(pid_t pid)
获取指定应用的内存信息.
DProcessIOInfo ioInfo(pid_t pid)
获取指定应用的IO信息.
QList< pid_t > allPids()
获取所有应用ID.
DProcessStatus status(pid_t pid)
获取指定应用的状态信息.
QHash< QString, QString > environment(pid_t pid)
获取指定应用的环境信息.
应用基础信息
Definition: dprocessdevice.h:17
QString name
Definition: dprocessdevice.h:18
pid_t pid
Definition: dprocessdevice.h:23
QByteArray icon
Definition: dprocessdevice.h:24
quint32 mask
Definition: dprocessdevice.h:22
QString usrerName
Definition: dprocessdevice.h:21
int type
Definition: dprocessdevice.h:19
QString cmdline
Definition: dprocessdevice.h:20
应用IO状态信息
Definition: dprocessdevice.h:33
quint64 cancelledWriteBytes
Definition: dprocessdevice.h:36
quint64 writeBytes
Definition: dprocessdevice.h:35
quint64 readBytes
void Process::readIO()
Definition: dprocessdevice.h:34
应用内存状态信息
Definition: dprocessdevice.h:27
quint64 vmsize
bool Process::readStatm()
Definition: dprocessdevice.h:28
quint64 shm
Definition: dprocessdevice.h:30
quint64 rss
Definition: dprocessdevice.h:29
应用网络状态信息
Definition: dprocessdevice.h:39
quint64 sentBytes
Definition: dprocessdevice.h:41
quint64 recvBytes
Definition: dprocessdevice.h:40
应用状态信息
Definition: dprocessdevice.h:44
qint64 cguestTime
Definition: dprocessdevice.h:69
quint32 nthreads
Definition: dprocessdevice.h:60
gid_t pgid
Definition: dprocessdevice.h:47
quint64 startTime
Definition: dprocessdevice.h:67
pid_t ppid
Definition: dprocessdevice.h:46
quint32 processor
Definition: dprocessdevice.h:57
gid_t gid
Definition: dprocessdevice.h:49
quint64 utime
Definition: dprocessdevice.h:63
gid_t sgid
Definition: dprocessdevice.h:53
quint64 stime
Definition: dprocessdevice.h:64
quint32 rtPrio
Definition: dprocessdevice.h:58
uid_t fuid
Definition: dprocessdevice.h:54
uid_t euid
Definition: dprocessdevice.h:50
qint64 cutime
Definition: dprocessdevice.h:65
uid_t suid
Definition: dprocessdevice.h:52
char state
bool Process::readStat()
Definition: dprocessdevice.h:45
int nice
Definition: dprocessdevice.h:61
gid_t egid
Definition: dprocessdevice.h:51
quint64 wtime
Definition: dprocessdevice.h:70
quint64 guestTime
Definition: dprocessdevice.h:68
quint32 policy
Definition: dprocessdevice.h:59
uid_t uid
Definition: dprocessdevice.h:48
qint64 cstime
Definition: dprocessdevice.h:66
gid_t fgid
Definition: dprocessdevice.h:55