Skip to content

Commit

Permalink
remove over-budget logic
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyZhang7 committed Dec 1, 2022
1 parent 60ba06f commit 45d9341
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bin/pythia_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ fn main() {

if over_budget || last_gc.elapsed() > SETTINGS.gc_epoch {
// Run garbage collection
if over_budget {
eprintln!("Over budget, would disable but it's not implemented");
// if over_budget {
// eprintln!("Over budget, would disable but it's not implemented");
// let enabled_tracepoints: HashSet<_> =
// CONTROLLER.enabled_tracepoints().drain(..).collect();
// let keep_count =
Expand Down Expand Up @@ -184,7 +184,7 @@ fn main() {
// CONTROLLER.disable(&to_disable);
// writeln!(output_file, "Disabled {}", to_disable.len()).ok();
// writeln!(output_file, "Disabled {:?}", to_disable).ok();
}
// }
// Disable tracepoints not observed in critical paths
let to_disable = budget_manager.old_tracepoints();
CONTROLLER.disable(&to_disable);
Expand Down

0 comments on commit 45d9341

Please sign in to comment.