Commit af1fac2d authored by Marco Perronet's avatar Marco Perronet
Browse files

Add debug prints for raw trace

parent e89195fc
......@@ -162,7 +162,18 @@ impl FTraceEVG {
fn read_stream_parse(&mut self) -> Option<TraceEvent> {
if let Some(raw_event) = wrappers::read_stream_raw(self.recorders, self.cpu_cnt) {
return Some(self.event_from_raw(&raw_event));
let trace_event = Some(self.event_from_raw(&raw_event));
/* Debug */
if crate::params::dump_raw_trace() {
println!("{:#?}", raw_event);
}
if crate::params::dump_raw_trace_w_type() && self.target_pids.contains(&trace_event.unwrap().pid) {
let event = trace_event.unwrap();
println!("*** {} - {} ***\n{:#?}", event.etype.short_name(), event.pid, raw_event);
}
return trace_event;
}
None
......
......@@ -7,7 +7,7 @@ use crate::events_processing::invocation_cycle::IcHeuristic;
/* Debug */
pub static mut DUMP_RAW_TRACE: bool = false;
pub static mut DUMP_RAW_TRACE_W_TYPE: bool = false;
pub static mut DUMP_RAW_TRACE_W_TYPE: bool = true; // TODO TURN ME OFF
pub static mut LOGGER_EVENT_SEQ: bool = false;
// Record the current run
pub static mut LOGGER_REPLAY: bool = true; // Only turn this off when measuring performance!
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment