Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
ratankaliani committed Jan 15, 2025
1 parent 6a1543c commit a526f9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/core/executor/src/syscalls/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ fn start_cycle_tracker(rt: &mut Executor, name: &str) {
let depth = rt.cycle_tracker.len() as u32;
rt.cycle_tracker.insert(name.to_string(), (rt.state.global_clk, depth));
let padding = "│ ".repeat(depth as usize);
log::info!("{}┌╴{}", padding, name);
tracing::info!("{}┌╴{}", padding, name);
}

/// End tracking cycles for the given name, print out the log, and return the total number of cycles
Expand All @@ -187,7 +187,7 @@ fn end_cycle_tracker(rt: &mut Executor, name: &str) -> Option<u64> {
if let Some((start, depth)) = rt.cycle_tracker.remove(name) {
let padding = "│ ".repeat(depth as usize);
let total_cycles = rt.state.global_clk - start;
log::info!("{}└╴{} cycles", padding, num_to_comma_separated(total_cycles));
tracing::info!("{}└╴{} cycles", padding, num_to_comma_separated(total_cycles));
return Some(total_cycles);
}
None
Expand Down

0 comments on commit a526f9c

Please sign in to comment.