We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b7c641 commit 3eaadcdCopy full SHA for 3eaadcd
proc_stat.go
@@ -110,6 +110,11 @@ type ProcStat struct {
110
Policy uint
111
// Aggregated block I/O delays, measured in clock ticks (centiseconds).
112
DelayAcctBlkIOTicks uint64
113
+ // Guest time of the process (time spent running a virtual CPU for a guest
114
+ // operating system), measured in clock ticks.
115
+ GuestTime int
116
+ // Guest time of the process's children, measured in clock ticks.
117
+ CGuestTime int
118
119
proc FS
120
}
@@ -189,6 +194,8 @@ func (p Proc) Stat() (ProcStat, error) {
189
194
&s.RTPriority,
190
195
&s.Policy,
191
196
&s.DelayAcctBlkIOTicks,
197
+ &s.GuestTime,
198
+ &s.CGuestTime,
192
199
)
193
200
if err != nil {
201
return ProcStat{}, err
0 commit comments