Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,7 @@ type Stats struct {
SwapInDelay time.Duration
FreePagesDelayCount uint64
FreePagesDelay time.Duration
ReadBytes uint64
WriteBytes uint64
CancelledWriteBytes uint64
}
3 changes: 3 additions & 0 deletions stats_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ func parseStats(ts unix.Taskstats) (*Stats, error) {
SwapInDelay: nanoseconds(ts.Swapin_delay_total),
FreePagesDelayCount: ts.Freepages_count,
FreePagesDelay: nanoseconds(ts.Freepages_delay_total),
ReadBytes: ts.Read_bytes,
WriteBytes: ts.Write_bytes,
CancelledWriteBytes: ts.Cancelled_write_bytes,
}

return stats, nil
Expand Down