pub struct ProfileEvent {
pub event: String,
pub commit_sha: Option<String>,
pub env_hash: String,
pub model: String,
pub concurrency: u32,
pub shape: BTreeMap<String, Value>,
pub stage_us: BTreeMap<String, Value>,
pub graph_enabled: bool,
pub runtime_flags: Value,
pub source: Option<String>,
pub source_line: Option<String>,
}Expand description
Stable profile event envelope.
Field order is schema-significant for JSON output. Do not reorder.
Fields§
§event: StringEvent family, for example unified_prof, bucket_prof, or
vllm_moe_config.
commit_sha: Option<String>Git commit for the binary under test. None is allowed only when the
artifact producer cannot access VCS metadata, but the key must exist.
env_hash: StringCanonical runtime environment hash (sha256:...).
model: StringHuggingFace model id or local model label.
concurrency: u32Closed-loop concurrency for the profiled cell.
shape: BTreeMap<String, Value>Shape attributes such as batch size, top-k pairs, blocks, or sequence lengths. Values are JSON scalars so producers can extend keys without a schema bump.
stage_us: BTreeMap<String, Value>Timings in microseconds for the relevant stage or substage.
graph_enabled: boolWhether the profiled path ran under CUDA graph replay.
runtime_flags: ValueRuntime flags/config snapshot that affected this event.
source: Option<String>§source_line: Option<String>Implementations§
Source§impl ProfileEvent
impl ProfileEvent
pub fn validate(&self) -> Result<(), ProfileValidationError>
Trait Implementations§
Source§impl Clone for ProfileEvent
impl Clone for ProfileEvent
Source§fn clone(&self) -> ProfileEvent
fn clone(&self) -> ProfileEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProfileEvent
impl Debug for ProfileEvent
Source§impl<'de> Deserialize<'de> for ProfileEvent
impl<'de> Deserialize<'de> for ProfileEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ProfileEvent
impl PartialEq for ProfileEvent
Source§fn eq(&self, other: &ProfileEvent) -> bool
fn eq(&self, other: &ProfileEvent) -> bool
self and other values to be equal, and is used by ==.