euv_core/app/telemetry/struct.rs
1use super::*;
2
3/// Zero-allocation monotonic nanosecond cold-start telemetry from process boot (`t0`) through first present (`t7`).
4#[derive(Clone, Copy, Data, Debug, Default, Deserialize, Eq, Hash, PartialEq, Serialize)]
5pub struct StartupTelemetry {
6 /// Monotonic timestamp in nanoseconds at process / runtime entry (`t0`).
7 #[get(type(copy))]
8 pub(crate) t0_process_boot_ns: u64,
9 /// Monotonic timestamp in nanoseconds when `App`, active `Renderer`, and surface handle are ready (`t1`).
10 #[get(type(copy))]
11 pub(crate) t1_runtime_ready_ns: u64,
12 /// Monotonic timestamp in nanoseconds when the default UI font handle is bound (`t2`).
13 #[get(type(copy))]
14 pub(crate) t2_font_ready_ns: u64,
15 /// Monotonic timestamp in nanoseconds when the initial route `SceneTree` finishes mounting (`t3`).
16 #[get(type(copy))]
17 pub(crate) t3_mount_done_ns: u64,
18 /// Monotonic timestamp in nanoseconds when the first `LayoutEngine::compute` pass completes (`t4`).
19 #[get(type(copy))]
20 pub(crate) t4_layout_done_ns: u64,
21 /// Monotonic timestamp in nanoseconds when the first `DisplayList` and visible glyphs complete (`t5`).
22 #[get(type(copy))]
23 pub(crate) t5_paint_done_ns: u64,
24 /// Monotonic timestamp in nanoseconds when the first frame draw command buffer is submitted (`t6`).
25 #[get(type(copy))]
26 pub(crate) t6_gpu_submit_ns: u64,
27 /// Monotonic timestamp in nanoseconds at verified first-frame presentation (`t7`).
28 #[get(type(copy))]
29 pub(crate) t7_first_present_ns: u64,
30}