sdk/golang/Standard Library/GoNetHttpPprof
Standard Library

GoNetHttpPprof

Go stdlib package — net/http/pprof. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.Cmdline()Neutral
#
Signature
Cmdline(w http.ResponseWriter, r *http.Request)

Cmdline responds with the running program's

.Handler()Neutral
#
Signature
Handler(name string) http.Handler

Handler returns an HTTP handler that serves the named profile.

.Index()Neutral
#
Signature
Index(w http.ResponseWriter, r *http.Request)

Index responds with the pprof-formatted profile named by the request.

.Profile()Neutral
#
Signature
Profile(w http.ResponseWriter, r *http.Request)

Profile responds with the pprof-formatted cpu profile.

.Symbol()Neutral
#
Signature
Symbol(w http.ResponseWriter, r *http.Request)

Symbol looks up the program counters listed in the request,

.Trace()Neutral
#
Signature
Trace(w http.ResponseWriter, r *http.Request)

Trace responds with the execution trace in binary form.

Fully-Qualified Names

FQNField
net/http/pproffqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

go.mod
// standard library — no go.mod entry required
rule.py
from codepathfinder.go_rule import ...  # net/http/pprof