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 45d9341 commit 6e2a73b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/bin/pythia_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ fn main() {
)
.ok();

if over_budget || last_gc.elapsed() > SETTINGS.gc_epoch {
// 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");
Expand Down Expand Up @@ -186,13 +186,13 @@ fn main() {
// 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);
writeln!(output_file, "Disabled {}", to_disable.len()).ok();
writeln!(output_file, "Disabled {:?}", to_disable).ok();
// let to_disable = budget_manager.old_tracepoints();
// CONTROLLER.disable(&to_disable);
// writeln!(output_file, "Disabled {}", to_disable.len()).ok();
// writeln!(output_file, "Disabled {:?}", to_disable).ok();

last_gc = Instant::now();
}
// last_gc = Instant::now();
// }

if !over_budget && last_decision.elapsed() > SETTINGS.decision_epoch {

Expand Down

0 comments on commit 6e2a73b

Please sign in to comment.