[llvm] [Timers] Add a flag to set a minimum timer value for printing (PR #139306)
Hans Wennborg via llvm-commits
llvm-commits at lists.llvm.org
Tue May 20 05:08:43 PDT 2025
https://github.com/zmodem commented:
This seems to duplicate the logic between `PrintQueuedTimers` and `printJSONValues`. Maybe the filtering could happen in `prepareToPrintList` instead?
But more generally, is this the most useful way of limiting the output size? It seems the output size with a certain timer cutoff could vary a lot depending on how long the compilation ran for example. Maybe a flag to only print the top-N timers would be more useful?
https://github.com/llvm/llvm-project/pull/139306
More information about the llvm-commits
mailing list