Documentation
¶
Overview ¶
Package profiling provides opt-in, process-wide Go diagnostics for Stroppy applications.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
Config controls process-wide diagnostics. An empty Address disables profiling. Sampling changes benchmark overhead; zero leaves the existing runtime setting untouched.
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session owns one reference to a shared process-wide profiling listener. Concurrent runs with identical options share it until the last session closes.
func Start ¶
Start enables diagnostics for a caller-owned scope. Nil options use context or environment. Only loopback listeners are accepted because profiles can expose credentials and application data.
Click to show internal directories.
Click to hide internal directories.