profile

package
v0.27.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProfileCPUStart

func ProfileCPUStart() *os.File

Executes pprof cpu profiler and saves result to cpu.prof in project root. Profiling is stopped by calling ProfileCPUStop() . Example:

func ProfileMe() {
	p := log.ProfileCPU()
	defer ProfileCPUstop(p)
	... regular code starts here
}

func ProfileCPUstop

func ProfileCPUstop(f *os.File)

Stops CPU profiling. Call by deferring.

func ProfileMem

func ProfileMem()

Executes pprof memory profiler and saves result to mem.prof in project root.

Types

This section is empty.

Jump to

Keyboard shortcuts

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