package
Version:
v1.119.4
Opens a new window with list of versions in this module.
Published: Dec 17, 2024
License: AGPL-3.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func DiskIO(logger *zap.Logger, pid int32) monkit.StatSource
DiskIO creates a monkit StatSource that can yield disk IO statistics about the device
underlying the specified device.
type Stats struct {
ReadCount uint64
WriteCount uint64
ReadBytes uint64
WriteBytes uint64
}
Stats represents cumulative counts of read/write operations, read/write bytes, and time spent
doing reads and writes on a particular block device.
func (s *Stats) Get(pid int32) error
Get collects I/O statistics for the current process (if implemented in gopsutil).
Source Files
¶
Click to show internal directories.
Click to hide internal directories.