profiler

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

README

Profiler

This is special package what should be imported only when we want to run new gops client instance.

That package based on gops library. The gops it's special web listener what help to check current state of application. It help to take stack/trace/cpu usage/memory usage of current application.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrServiceIsOffline = errors.New("service is offline")
)

Functions

func AddHealthCheck

func AddHealthCheck(f func() error)

func ExecuteHealthCheck

func ExecuteHealthCheck() error

func GOPS

func GOPS() func()

GOPS run gops instance and use GOPS_ADDR if it present as listener addr

func Monitor

func Monitor(ctx context.Context) func()

Monitor run pprof

Types

This section is empty.

Jump to

Keyboard shortcuts

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