export

package
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PidJSON

func PidJSON(pid int32, filename string, iter uint32, refreshRate uint64) error

PidJSON exports data particular to a given process (given by pid) to a JSON file for a specified number of iterations and a specified refresh rate.

func ToJSON

func ToJSON(filename string, iter uint32, refreshRate uint64) error

ToJSON exports data to a JSON file for a specified number of iterations and a specified refreshed rate.

Types

type OverallStats

type OverallStats struct {
	NetStats  map[string]netStats `json:"net"`
	CPUStats  []float64           `json:"cpu"`
	DiskStats []diskStats         `json:"disk"`
	CPULoad   cpuInfo.CPULoad     `json:"cpuLoad"`
	MemStats  memStats            `json:"mem"`
	Epoch     uint64              `json:"epoch"`
}

OverallStats describes the structure of each exported json object.

func NewOverallStats

func NewOverallStats() *OverallStats

NewOverallStats returns a pointer to an empty OverallStats struct

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL