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
16
17
18
use crate::streaming::event::EventCount;
use crate::time::Timestamp;
use crate::types::Heap;
use derive_more::Display;

#[derive(Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug, Display)]
#[display(fmt = "[{timestamp}]:0x{address:X}:{size}")]
pub struct MemoryEvent {
    pub event_count: EventCount,
    pub timestamp: Timestamp,

    pub address: u32,
    pub size: u32,
    pub heap: Heap,
}

pub type MemoryAllocEvent = MemoryEvent;
pub type MemoryFreeEvent = MemoryEvent;