examples

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockProfile

func BlockProfile()

func CPUProfile

func CPUProfile()

func CustomCloser

func CustomCloser()

Example with a custom closer function

func CustomPath

func CustomPath()

Example to write profile to specific path

func DefaultPath

func DefaultPath()

Example to write profile to default path (same as application)

func EnableInterruptHook

func EnableInterruptHook()

Example to enable the automatic shutdown hook based on interruption signals

func GoroutineProfile

func GoroutineProfile()

func MemProfile

func MemProfile()

Default to type heap

func MemProfileAllocs

func MemProfileAllocs()

func MemProfileAllocsRate

func MemProfileAllocsRate()

func MemProfileRate

func MemProfileRate()

Default to type heap

func Multiple

func Multiple()

func MutexProfile

func MutexProfile()

func OneLine

func OneLine()

func Quiet

func Quiet()

Example to disable logs

func TempDirPath

func TempDirPath()

Example to write profile to a temporary path

func ThreadCreationProfile

func ThreadCreationProfile()

func TraceProfile

func TraceProfile()

Types

This section is empty.

Jump to

Keyboard shortcuts

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