profiler

package
v0.24.46 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGoroutineMonitor

func NewGoroutineMonitor(interval time.Duration)

NewGoroutineMonitor can be used to track down goroutine leaks

Types

type CPU

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

func NewCPU

func NewCPU(path string) (*CPU, error)

func NewCPUWithShutdown

func NewCPUWithShutdown(path string, shutdownC <-chan struct{}) (*CPU, error)

func (*CPU) Run

func (cpu *CPU) Run()

type Memory

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

func NewMemory

func NewMemory(path string, interval time.Duration) *Memory

func NewMemoryWithShutdown

func NewMemoryWithShutdown(path string, interval time.Duration, shutdownC <-chan struct{}) *Memory

func (*Memory) Run

func (memory *Memory) Run()

type Monitor

type Monitor struct {
	Alloc,
	TotalAlloc,
	Sys,
	Mallocs,
	Frees,
	LiveObjects,
	PauseTotalNs uint64
	NumGC        uint32
	NumGoroutine int
}

Jump to

Keyboard shortcuts

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