Function observability::test_run_timed_flame[][src]

pub fn test_run_timed_flame(
    path: Option<&str>
) -> Result<Option<impl Drop>, TracingError>

Generate a flamegraph from timed spans "busy time". Takes a path where you are piping the output into. If the path is provided a flamegraph will automatically be generated. TODO: Get auto inferno to work for now use (fish, or the bash equiv): 2>| inferno-flamegraph > flamegraph_test_ice_(date +'%d-%m-%y-%X').svg And run with cargo test --quiet