sparkles_parser/parsed.rs
1use std::rc::Rc;
2
3#[derive(Clone, Debug)]
4pub enum ParsedEvent {
5 Instant {
6 tm: u64,
7 name: Rc<str>
8 },
9 Range {
10 start: u64,
11 end: u64,
12 name: Rc<str>
13 },
14 NamedRange {
15 name: Rc<str>,
16 end_name: Rc<str>,
17 start: u64,
18 end: u64,
19 }
20}
21
22pub struct ThreadInfoState {
23 pub thread_id: Option<u64>,
24 pub thread_name: Option<String>,
25 pub thread_ord_id: u64
26}