Skip to content

Add fgprof#3110

Merged
brancz merged 1 commit intomainfrom
fgprof
Oct 24, 2025
Merged

Add fgprof#3110
brancz merged 1 commit intomainfrom
fgprof

Conversation

@brancz
Copy link
Member

@brancz brancz commented Oct 24, 2025

No description provided.

main.go Outdated
mux.HandleFunc("/debug/pprof/symbol", pprof.Symbol)
mux.HandleFunc("/debug/pprof/trace", pprof.Trace)
mux.HandleFunc("/debug/pprof/profile", pprof.Profile)
mux.HandleFunc("/debug/fgprof", fgprof.Handler())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe needs to be:

mux.HandleFunc("/debug/fgprof", fgprof.Handler().ServeHTTP)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh wait just needs to use Handle, not HandleFunc

@brancz brancz merged commit fe2bffd into main Oct 24, 2025
12 checks passed
@brancz brancz deleted the fgprof branch October 24, 2025 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments