Skip to content

Reduce the amount of timings that are printed with -v{2, ...} and -ddump-timings

Alp Mestanogullari requested to merge alp/ghc:wip/alp/output-less-timings into master

We instead leave the choice to callers of withTiming, and make sure not to print timings when withTiming is repeatedly called around small computations. This is achieved by adding an extra argument where the caller specifies whether timings should be printed (when using -v<N> with N >= 2 or -ddump-timings).

This addresses #17138 (closed).

Merge request reports