euv_core/app/telemetry/enum.rs
1use super::*;
2
3/// Explicit presentation outcome for every frame tick separating real presents, idle skips, bounded pipelining waits, and retryable failures.
4#[derive(
5 Clone, Copy, Debug, Default, Deserialize, Eq, Hash, Ord, PartialEq, PartialOrd, Serialize,
6)]
7pub enum PresentOutcome {
8 /// Complete frame was presented to the active display swapchain or host surface.
9 Presented,
10 /// Frame tick was skipped because zero scene or surface damage occurred.
11 #[default]
12 SkippedNoDamage,
13 /// Submission waited because the bounded in-flight frame queue (`max_frames_in_flight`) was full.
14 WaitInFlight,
15 /// Presentation failed transiently; the full pending frame must retry on the same surface generation.
16 PresentFailedRetry,
17}
18
19/// Ordered monotonic cold-start milestone stages captured in `StartupTelemetry`.
20#[derive(
21 Clone, Copy, Debug, Default, Deserialize, Eq, Hash, Ord, PartialEq, PartialOrd, Serialize,
22)]
23pub enum StartupStage {
24 /// Process, native entry point, or WASM module initialization (`t0`).
25 #[default]
26 ProcessBoot,
27 /// `App`, single active `Renderer`, and native surface handle created (`t1`).
28 RuntimeReady,
29 /// Default UI font face handle bound without synchronous disk/font scans (`t2`).
30 FontReady,
31 /// Initial visible route `SceneTree` finished mounting (`t3`).
32 MountDone,
33 /// First `LayoutEngine::compute` pass finished (`t4`).
34 LayoutDone,
35 /// First `DisplayList` built and initial visible glyphs prepared (`t5`).
36 PaintDone,
37 /// First GPU command buffer or software surface draw submitted (`t6`).
38 GpuSubmit,
39 /// Verified first-frame presentation completed (`t7`).
40 FirstPresent,
41}