Skip to main content

pprof_router_with_config

Function pprof_router_with_config 

Source
pub fn pprof_router_with_config(
    config: ProfilingConfig,
) -> Result<Router, ProfilingError>
Expand description

The pprof routes with an explicit policy.

The router always has the CPU route, which returns 503 on non-Unix targets. The router has the heap route only with the heap-profiling feature, and only on Unix.

ยงErrors

Returns an error when related profiling duration bounds are invalid.