vor 0.2.0

Cross-platform performance instrumentation with an in-app egui panel and live system and GPU metrics.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::sink::{Guard, Sink};

/// [`Sink`] that pipes spans into the browser's User Timing API
/// (`performance.mark` / `performance.measure`).
///
/// Open DevTools → Performance, record, and span boundaries appear
/// as a flame chart alongside the JS timeline.
pub struct BrowserSink;

impl Sink for BrowserSink {
    fn install(self) -> Guard {
        tracing_wasm::set_as_global_default();
        Guard::new(())
    }
}