Skip to content

Commit

Permalink
chore: reduce threshold in profiler
Browse files Browse the repository at this point in the history
This help when profiling `sym_n`, because the threshold is applied to each step individually
  • Loading branch information
alexkeizer committed Oct 2, 2024
1 parent 6aca323 commit df3ab2c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Benchmarks/Command.lean
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ elab "benchmark" id:ident declSig:optDeclSig val:declVal : command => do

if (← getBoolOption `profiler) then
opts := opts.setBool `trace.profiler true
opts := opts.setNat `trace.profiler.threshold 1
n := 1 -- only run once, if `profiler` is set to true
else
opts := opts.setBool `trace.benchmark true
Expand Down

0 comments on commit df3ab2c

Please sign in to comment.