Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProcessFD ¶
ProcessFD is a map of the file descriptor number to the descriptor object that it is pointing to.
type ProcessIO ¶
type ProcessIO struct {
// Limits are the max limits either in time or size for the
// following resources on the process.x.
Limits struct {
// OpenFiles is the maximum number of files that this
// process can open at a time.
OpenFiles int
// FileSize is the maximum file size that the process
// can make.
FileSize int
// CPUTime is the amount of time that the CPU has to
// run.
CPUTime int
}
// FD is the file descriptors that the process currently has
// open.
FD ProcessFD
}
ProcessIO is kernel level IO information about the process. This can be used to debug various issues related to open files and kernel limits on the process IO.
func NewProcess ¶
NewProcess returns the file descriptors for a single Linux process.
Click to show internal directories.
Click to hide internal directories.