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