vitals

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2018 License: MIT Imports: 7 Imported by: 1

README

vitals

go get "github.com/codemodus/vitals"

NOT READY - Do not use.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MonitorMemoryStats

func MonitorMemoryStats(cycle time.Duration) chan *MemStats

func SetupPIDFile

func SetupPIDFile() (deferFunc func(), err error)

func StartCPUProfile

func StartCPUProfile(file string) (deferFunc func(), err error)

func WriteHeapProfile

func WriteHeapProfile(file string) error

Types

type MemStats

type MemStats struct {
	Allocs      uint64
	TotalAllocs uint64
	Sys         uint64
	Mallocs     uint64
	Frees       uint64
}

func MemoryStats

func MemoryStats() *MemStats

func NewMemStats

func NewMemStats(s *runtime.MemStats) *MemStats

func (*MemStats) String

func (s *MemStats) String() string

Jump to

Keyboard shortcuts

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