Expand description
Profiling HTTP endpoints.
Modulesยง
- enabled ๐
Structsยง
- CpuProfile
Request ๐ - CpuProfiling
Guard ๐ - Flamegraph
Template - MemProfiling
Suspend ๐Guard - Holds the jemalloc profiling control lock with memory profiling paused, restoring the prior state on drop.
- Mode
Response ๐ - Mode
Update ๐Request - A profiling mode update.
- Prof
Template ๐
Enumsยง
- MemProfiling
Status ๐
Constantsยง
- MAX_
CPU_ ๐PROFILE_ HZ - The maximum permitted CPU profile sampling frequency. Matches the limit
enforced by
mz_prof::time::prof_time. - MAX_
CPU_ ๐PROFILE_ TIME_ SECS - The maximum permitted CPU profile capture duration. A capture holds the jemalloc profiling control lock for its entire run, which blocks the heap profiling endpoints, so runaway requests must be bounded.
Staticsยง
- CPU_
PROFILING_ ๐ACTIVE - EXECUTABLE ๐
Functionsยง
- capture_
cpu_ ๐profile - cpu_
pprof_ ๐response - cpu_
profiling_ ๐active - flamegraph ๐
- handle_
post_ ๐cpu - handle_
static - router
- Creates a router that serves the profiling endpoints.
- time_
prof ๐ - validate_
cpu_ ๐profile_ params