trace-recorder-parser 0.19.0

A Rust library to parse Percepio's TraceRecorder data
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 handle: ObjectHandle,
    pub name: IsrName,
    pub priority: IsrPriority,
    pub timestamp: Timestamp,
}

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