/god

A small tool for simplifying debugging of go applications.

Primary LanguageGoMIT LicenseMIT

god

A small tool for simplifying debugging of go applications.

Import the library in your app:

import "github.com/256dpi/god"

Then add the following line as early as possible:

god.Debug()

This will open a pprof and prometheus endpoint on port 6060.

Use the god utility to interact with the endpoint:

god -duration 10

The tool will fetch all available profiles, run the pprof servers and open a custom frontend from which all profiles can be accessed.