profiling

package
v0.0.0-...-e39e4f3 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseMemProfile

func CloseMemProfile()

func PrintStats

func PrintStats(stats ProfileStats)

func StartCPUProfile

func StartCPUProfile(filename string) error

func StartMemProfile

func StartMemProfile(filename string) error

func StartTrace

func StartTrace(filename string) error

func StopCPUProfile

func StopCPUProfile()

func StopTrace

func StopTrace()

func WriteMemProfile

func WriteMemProfile() error

Types

type ProfileStats

type ProfileStats struct {
	NumGoroutine int
	NumCPU       int
	MemAlloc     uint64
	MemSys       uint64
	MemLookups   uint64
	MemMallocs   uint64
	HeapAlloc    uint64
	HeapSys      uint64
	HeapIdle     uint64
	HeapInuse    uint64
}

func GetStats

func GetStats() ProfileStats

type TimingStats

type TimingStats struct {
	StartTime   time.Time
	EndTime     time.Time
	Elapsed     time.Duration
	FileCount   int
	ResultCount int
}

func NewTimingStats

func NewTimingStats() *TimingStats

func (*TimingStats) Finish

func (t *TimingStats) Finish(fileCount, resultCount int)

func (*TimingStats) Print

func (t *TimingStats) Print()

Jump to

Keyboard shortcuts

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