httppprof

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: MIT Imports: 7 Imported by: 0

README

HTTP Pprof

Provides simple HTTP Pprof server.

Examples

httpPprof := httppprof.NewServer(":8082")
httpPprof.Run()
defer httpPprof.Shutdown()

osSignals := make(chan os.Signal, 1)
signal.Notify(osSignals, syscall.SIGINT, syscall.SIGTERM)

log.Printf("got signal from OS: %v. Exit...", <-osSignals)

After running HTTP server, you can see different profiles that go provides. In example by:

http://localhost:8082/debug/pprof/

Licensing

This project is licensed under the MIT License.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(httpListen string) *server

Types

This section is empty.

Jump to

Keyboard shortcuts

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