trace_recorder_parser/streaming/event/
isr.rs

1use crate::streaming::event::EventCount;
2use crate::time::Timestamp;
3use crate::types::{IsrName, IsrPriority, ObjectHandle};
4use derive_more::Display;
5
6#[derive(Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug, Display)]
7#[display(fmt = "[{timestamp}]:'{name}':{priority}")]
8pub struct IsrEvent {
9    pub event_count: EventCount,
10    pub timestamp: Timestamp,
11
12    pub handle: ObjectHandle,
13    pub name: IsrName,
14    pub priority: IsrPriority,
15}
16
17pub type IsrDefineEvent = IsrEvent;
18pub type IsrBeginEvent = IsrEvent;
19pub type IsrResumeEvent = IsrEvent;