Function init_from_env

Source
pub fn init_from_env(default_path: &str) -> Option<PathBuf>
👎Deprecated since 0.1.0: use try_init_from_env and retain BenchSession
Expand description

Enables the historical append-only global recorder.

This compatibility API discards write and flush failures and is therefore unsuitable for a regression gate. Use try_init_from_env instead.

§Examples

#![allow(deprecated)]
let path: Option<std::path::PathBuf> =
    ailloli_ui_bench::init_from_env("artifacts/bench/legacy.jsonl");
let _ = path;

§Examples

#![allow(deprecated)]
let path = ailloli_ui_bench::init_from_env("artifacts/bench/legacy.jsonl");
let _ = path;