trace-recorder-parser 0.19.0

A Rust library to parse Percepio's TraceRecorder data
Documentation
use crate::streaming::event::EventCount;
use crate::time::Timestamp;
use crate::types::{IsrName, IsrPriority, ObjectHandle};
use derive_more::Display;

#[derive(Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug, Display)]
#[display(fmt = "[{timestamp}]:'{name}':{priority}")]
pub struct IsrEvent {
    pub event_count: EventCount,
    pub timestamp: Timestamp,

    pub handle: ObjectHandle,
    pub name: IsrName,
    pub priority: IsrPriority,
}

pub type IsrDefineEvent = IsrEvent;
pub type IsrBeginEvent = IsrEvent;
pub type IsrResumeEvent = IsrEvent;