File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55//! text format used in cache simulation research. Each line contains:
66//!
77//! ```text
8- //! timestamp key [size]
8+ //! timestamp key \ [size\ ]
99//! ```
1010//!
1111//! - `timestamp`: Unix timestamp or logical time (ignored in basic simulation)
2727use std:: io:: BufRead ;
2828use tracekit:: { Event , EventSource } ;
2929
30- /// Reads traces in ARC format (space-separated: timestamp key [size]).
30+ /// Reads traces in ARC format (space-separated: timestamp key \ [size\ ]).
3131pub struct ArcReader < R > {
3232 reader : R ,
3333 line : String ,
@@ -71,7 +71,7 @@ impl<R: BufRead> EventSource for ArcReader<R> {
7171 continue ; // Invalid line, skip
7272 }
7373
74- // Parse: timestamp key [size]
74+ // Parse: timestamp key \ [size\ ]
7575 let key = match parts[ 1 ] . parse :: < u64 > ( ) {
7676 Ok ( k) => k,
7777 Err ( _) => continue , // Skip invalid key
You can’t perform that action at this time.
0 commit comments