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§
- Allocator
Selection - Benchmark allocator selection metadata.
Enums§
- Allocator
Kind - 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.