blob: 4d1d9a1f113da7ce8eb415d32e5716a32e2784eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
#ifndef MEMORYMANAGER_P_H
#define MEMORYMANAGER_P_H
#include <QString>
#include "processmanager-global.h"
QT_BEGIN_NAMESPACE_PROCESSMANAGER
class MappedRegion {
public:
quint64 addressStart;
quint64 addressEnd;
quint64 rssSize;
quint64 pssSize;
quint64 privateSize;
QString pathname;
static QString libBaseName(const QString &pathName);
QString libBaseName() const;
};
// proc/pid/stat
class stat {
public:
stat()
: ppid(0)
, pgrp(0)
, session(0)
, it_real_value(0)
, start_time(0)
, vsize(0)
, rss(0) {}
QByteArray comm;
char state;
int ppid;
int pgrp;
int session;
int tty_nr;
int tty_pgrp;
ulong flags;
ulong min_flt;
ulong cmin_flt;
ulong maj_flt;
ulong cmaj_flt;
ulong tms_utime;
ulong tms_stime;
long tms_cutime;
long tms_cstime;
long priority;
long nice;
long it_real_value;
ulong start_time;
ulong vsize;
long rss; /* you might want to shift this left 3 */
ulong rlim;
ulong start_code;
ulong end_code;
ulong start_stack;
ulong esp;
ulong eip;
ulong wchan;
ulong nswap;
ulong cnswap;
int exit_signal;
int processor;
};
QT_END_NAMESPACE_PROCESSMANAGER
#endif // MEMORYMANAGER_P_H
|