forked from mdlayher/taskstats
-
Notifications
You must be signed in to change notification settings - Fork 1
/
stats.go
32 lines (29 loc) · 835 Bytes
/
stats.go
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
package taskstats
import "time"
// CGroupStats contains statistics for tasks of an individual cgroup.
type CGroupStats struct {
Sleeping uint64
Running uint64
Stopped uint64
Uninterruptible uint64
IOWait uint64
}
// Stats contains statistics for an individual task.
type Stats struct {
BeginTime time.Time
ElapsedTime time.Duration
UserCPUTime time.Duration
SystemCPUTime time.Duration
MinorPageFaults uint64
MajorPageFaults uint64
CPUDelayCount uint64
CPUDelay time.Duration
BlockIODelayCount uint64
BlockIODelay time.Duration
SwapInDelayCount uint64
SwapInDelay time.Duration
FreePagesDelayCount uint64
FreePagesDelay time.Duration
ThrashingDelayCount uint64
ThrashingDelay time.Duration
}