#[non_exhaustive]pub struct RunMetadata {Show 23 fields
pub scenario: Option<String>,
pub phase: Option<String>,
pub git_revision: Option<String>,
pub dirty_diff_hash: Option<String>,
pub profile: Option<String>,
pub harness: Option<String>,
pub target: Option<String>,
pub machine: Option<String>,
pub operating_system: Option<String>,
pub winit_version: Option<String>,
pub backend: Option<String>,
pub window_backend: Option<String>,
pub renderer_backend: Option<String>,
pub gpu: Option<String>,
pub driver: Option<String>,
pub window_width: Option<u32>,
pub window_height: Option<u32>,
pub scale_factor: Option<f64>,
pub observed_scale_factor: Option<f64>,
pub warmup_samples: Option<u32>,
pub measured_samples: Option<u32>,
pub time_origin: TimeOrigin,
pub extensions: BTreeMap<String, Value>,
}Expand description
Reproducibility metadata for one benchmark run.
Unknown JSON fields are intentionally tolerated by readers. Use Default
and mutate the public fields instead of constructing this non-exhaustive
structure as a literal.
Optional values are absent when unknown; empty strings are not normalized. Width and height are physical window pixels. Scale factors must be finite and positive when validated by a session or comparison workflow.
§Examples
use ailloli_ui_bench::RunMetadata;
let mut metadata = RunMetadata::default();
metadata.scenario = Some("scroll-tree".into());
metadata.window_width = Some(1280);
assert_eq!(metadata.scenario.as_deref(), Some("scroll-tree"));Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.scenario: Option<String>Stable benchmark scenario name, or None when unspecified.
phase: Option<String>Project phase or experiment label, or None when unspecified.
git_revision: Option<String>Source revision measured by this run.
dirty_diff_hash: Option<String>Digest of uncommitted source changes, when present.
profile: Option<String>Build profile such as release or debug.
harness: Option<String>Stable identity of the executable or harness which produced the run.
target: Option<String>Compilation target used for the measured executable, when known.
machine: Option<String>Stable caller-provided machine identity, when available.
Producers should use an opaque lab identifier rather than a hostname or another value which could disclose user information.
operating_system: Option<String>Operating-system identity used for run compatibility checks.
winit_version: Option<String>Winit version used by the measured host, when applicable.
backend: Option<String>Legacy backend field retained for version-one artifacts.
New producers should use Self::window_backend for the effective
winit backend and Self::renderer_backend for the graphics backend.
window_backend: Option<String>Effective window-system backend observed by the winit adapter.
renderer_backend: Option<String>Effective graphics backend reported by the renderer adapter.
gpu: Option<String>GPU adapter identity reported by the renderer.
driver: Option<String>Graphics driver identity/version reported by the renderer.
window_width: Option<u32>Requested window width in physical pixels.
window_height: Option<u32>Requested window height in physical pixels.
scale_factor: Option<f64>Requested logical-to-physical device-pixel ratio.
observed_scale_factor: Option<f64>Device-pixel ratio read from the live native window.
This is deliberately separate from Self::scale_factor, which is a
requested/configured value in version-one benchmark artifacts.
warmup_samples: Option<u32>Number of leading samples excluded from regression statistics.
measured_samples: Option<u32>Number of samples intended for measured statistics.
time_origin: TimeOriginReference point for every elapsed_us value in this run.
extensions: BTreeMap<String, Value>Provider-specific diagnostics which do not warrant a schema revision.
Trait Implementations§
Source§impl Clone for RunMetadata
impl Clone for RunMetadata
Source§fn clone(&self) -> RunMetadata
fn clone(&self) -> RunMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more