fgprof

package
v2.303.8 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package fgprof provides Fx wiring to expose fgprof profiling over HTTP.

This package integrates fgprof into the debug HTTP server setup so you can collect wall-clock based profiles to diagnose CPU, blocking, and scheduling issues.

Start with `Module`.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name env.Name, mux *http.ServeMux)

Register installs the fgprof handler on mux.

The handler is registered at "/debug/fgprof" (namespaced by service name via http.Pattern) and serves fgprof's wall-clock based profiling UI/data. This is useful for diagnosing CPU usage as well as time spent blocked or waiting in scheduling.

This registration is intended to be composed into the go-service debug server wiring.

Types

This section is empty.

Jump to

Keyboard shortcuts

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