perf

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: MIT Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PerfS

type PerfS struct {
	Performance PerfStats
	// contains filtered or unexported fields
}
var Perf PerfS

func (*PerfS) CPUInfo

func (p *PerfS) CPUInfo(c echo.Context) error

func (*PerfS) CPUTime

func (p *PerfS) CPUTime(c echo.Context) error

func (*PerfS) CPUUtil

func (p *PerfS) CPUUtil(c echo.Context) error

func (*PerfS) DiskIO

func (p *PerfS) DiskIO(c echo.Context) error

func (*PerfS) DiskPart

func (p *PerfS) DiskPart(c echo.Context) error

func (*PerfS) HostInfo

func (p *PerfS) HostInfo(c echo.Context) error

func (*PerfS) Load

func (p *PerfS) Load(c echo.Context) error

func (*PerfS) Memory

func (p *PerfS) Memory(c echo.Context) error

func (*PerfS) NetIF

func (p *PerfS) NetIF(c echo.Context) error

func (*PerfS) NetStats

func (p *PerfS) NetStats(c echo.Context) error

func (*PerfS) Poll

func (p *PerfS) Poll(ctx context.Context)

func (*PerfS) Procs

func (p *PerfS) Procs(c echo.Context) error

func (*PerfS) Start

func (p *PerfS) Start(log logadapter.Logger)

func (*PerfS) Stop

func (p *PerfS) Stop()

func (*PerfS) Swap

func (p *PerfS) Swap(c echo.Context) error

func (*PerfS) Temps

func (p *PerfS) Temps(c echo.Context) error

func (*PerfS) Users

func (p *PerfS) Users(c echo.Context) error

type PerfStats

type PerfStats struct {
	Cpuinfo        []cpu.InfoStat
	Cputime        []cpu.TimesStat
	Cpuutilization []float64
	Diskpartions   []disk.PartitionStat
	Diskiocounter  map[string]disk.IOCountersStat
	Hostinfo       *host.InfoStat
	Hosttemp       []host.TemperatureStat
	Hostusers      []host.UserStat
	Loadavg        *load.AvgStat
	Loadprocs      *load.MiscStat
	Memstats       *mem.VirtualMemoryStat
	Memswap        *mem.SwapMemoryStat
	Netstats       []net.IOCountersStat
	Netaddr        []net.InterfaceStat
}

Jump to

Keyboard shortcuts

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