#[non_exhaustive]pub enum Event {
Show 13 variants
Marker {
ts_ms: u128,
name: String,
},
ResizePending {
ts_ms: u128,
w: u32,
h: u32,
},
ResizeApply {
ts_ms: u128,
w: u32,
h: u32,
dur_us: u128,
},
SurfaceConfigure {
ts_ms: u128,
w: u32,
h: u32,
dur_us: u128,
},
RenderFrame {
ts_ms: u128,
dur_us: u128,
},
GetCurrentTextureErr {
ts_ms: u128,
err: String,
},
MaximizeToggle {
ts_ms: u128,
to: bool,
},
AboutToWaitRedraw {
ts_ms: u128,
awaiting_resize: bool,
},
WindowInnerSizeSample {
ts_ms: u128,
w: u32,
h: u32,
},
Metric {
ts_ms: u128,
name: String,
value: f64,
role: MetricRole,
},
TextPipelineFrame {
ts_ms: u128,
layout_us: u128,
paint_us: u128,
render_us: u128,
draw_text_cmds: u32,
},
TextAtlasFrame {
ts_ms: u128,
hits: u32,
misses: u32,
rasterized: u32,
resets: u32,
evictions_blocked: u32,
glyphs_skipped: u32,
pages_active: u32,
},
IsolatedCompositorFrame {Show 22 fields
ts_ms: u128,
scenario: String,
isolated_pass_count: u32,
isolated_pixels_total: u64,
blur_pixels_total: u64,
offscreen_peak_bytes: u64,
pool_reuse_hits: u32,
pool_allocs: u32,
pool_reuse_ratio: f64,
blur_pass_count: u32,
stencil_offscreen_count: u32,
downgrade_count: u32,
downgrade_blur_clamped: u32,
downgrade_surface_clamped: u32,
downgrade_bytes_skipped: u32,
backdrop_capture_count: u32,
backdrop_pixels_total: u64,
backdrop_blur_pass_count: u32,
downgrade_backdrop_skipped: u32,
blend_capture_count: u32,
blend_composite_count: u32,
downgrade_blend_skipped: u32,
},
}Expand description
One JSONL event payload.
Timestamps are wall-clock milliseconds since the Unix epoch. Durations are microseconds. Dimensions and pixel counters use physical pixels unless a field says otherwise. Numeric metric values must be finite before a session accepts them.
§Examples
use ailloli_ui_bench::Event;
let event = Event::Metric {
ts_ms: 1,
name: "layout_us".into(),
value: 42.0,
role: ailloli_ui_bench::MetricRole::GatingSteady,
};
assert!(matches!(event, Event::Metric { value: 42.0, .. }));Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Marker
Named checkpoint (including span end markers).
Fields
ResizePending
Window resize queued before GPU apply.
Fields
ResizeApply
Surface resize applied on the GPU path.
Fields
SurfaceConfigure
GPU surface configuration.
Fields
RenderFrame
Full frame presented to the swapchain.
Fields
GetCurrentTextureErr
Failed to acquire the current swapchain texture.
Fields
MaximizeToggle
Window maximize state toggled.
Fields
AboutToWaitRedraw
Event loop about to wait; may schedule redraw after resize.
Fields
WindowInnerSizeSample
Sampled inner window size.
Fields
Metric
Structured numeric sample.
Fields
role: MetricRoleExplicit comparison behavior. Missing roles in older artifacts
deserialize as MetricRole::Diagnostic.
TextPipelineFrame
One text pipeline frame (layout + paint + render).
Fields
TextAtlasFrame
Glyph atlas cache statistics for one frame.
Fields
IsolatedCompositorFrame
Isolated compositor metrics for one surface-backed frame.