pub fn try_init_ailloli_ui_bench_from_env(
default_path: &str,
) -> Result<BenchInit, BenchInitError>Expand description
Starts a reliable JSONL benchmark session when AILLOLI_UI_BENCH=1.
Uses AILLOLI_UI_BENCH_PATH when set; otherwise writes to default_path.
Disabled collection returns BenchInit::Disabled; enabled initialization
propagates typed path, writer, and global-install failures.
§Errors
When collection is enabled, returns ailloli_ui_bench::BenchInitError for
invalid metadata or paths, an occupied destination/global slot, filesystem
or initial-write failure, or writer-thread startup failure. Disabled
collection does not fail.
§Examples
use ailloli_ui_winit::try_init_ailloli_ui_bench_from_env;
fn initialize() -> Result<(), Box<dyn std::error::Error>> {
let init = try_init_ailloli_ui_bench_from_env("artifacts/bench/run.jsonl")?;
let _completed = init.finish()?;
Ok(())
}