profiler

package
v0.0.0-...-ad90b1c Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Profiler

type Profiler struct {
	// contains filtered or unexported fields
}

func NewProfiler

func NewProfiler(homePath string) (*Profiler, error)

func (*Profiler) GetCPU

func (p *Profiler) GetCPU() []float64

func (*Profiler) GetDiskPartitionsUsage

func (p *Profiler) GetDiskPartitionsUsage() (map[string]*disk.UsageStat, error)

func (*Profiler) GetHomePathDiskUsage

func (p *Profiler) GetHomePathDiskUsage() *disk.UsageStat

func (*Profiler) GetMem

func (p *Profiler) GetMem() (*mem.VirtualMemoryStat, error)

func (*Profiler) GetPathDiskUsage

func (p *Profiler) GetPathDiskUsage(path string) *disk.UsageStat

Jump to

Keyboard shortcuts

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