Skip to main content

Module perf_build

Module perf_build 

Source
Expand description

Shared performance-build metadata helpers for benchmark tooling.

These helpers keep profile and allocator reporting consistent across benchmark binaries, regression tests, and shell harnesses.

Structs§

AllocatorSelection
Benchmark allocator selection metadata.

Enums§

AllocatorKind
Effective allocator compiled into the current binary.

Constants§

BENCH_ALLOCATOR_ENV
Environment variable that requests an allocator label for benchmark runs.
BENCH_BUILD_PROFILE_ENV
Environment variable that overrides benchmark build-profile metadata.
BINARY_SIZE_RELEASE_BUDGET_MB
Release binary-size budget (MB) shared by perf regression and budget gates.

Functions§

compiled_allocator
Returns the allocator compiled into the current binary.
detect_build_profile
Detects the benchmark build profile for reporting.
detect_build_profile_from
Detects build profile with injectable dependencies for tests.
profile_from_target_path
Attempts to derive Cargo profile from a binary path under target/.
resolve_bench_allocator
Resolves benchmark allocator metadata from BENCH_ALLOCATOR_ENV.
resolve_bench_allocator_from
Resolves benchmark allocator metadata from an optional raw token.