Skip to main content

Crate mz_prof_http

Crate mz_prof_http 

Source
Expand description

Profiling HTTP endpoints.

Modulesยง

enabled ๐Ÿ”’

Structsยง

CpuProfileRequest ๐Ÿ”’
CpuProfilingGuard ๐Ÿ”’
FlamegraphTemplate
MemProfilingSuspendGuard ๐Ÿ”’
Holds the jemalloc profiling control lock with memory profiling paused, restoring the prior state on drop.
ModeResponse ๐Ÿ”’
ModeUpdateRequest ๐Ÿ”’
A profiling mode update.
ProfTemplate ๐Ÿ”’

Enumsยง

MemProfilingStatus ๐Ÿ”’

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 ๐Ÿ”’