[llvm-dev] printing statistics timers
George Karpenkov via llvm-dev
llvm-dev at lists.llvm.org
Tue Feb 6 18:42:52 PST 2018
The code in Support/Timer.cpp has strangely inconsistent behavior for printAll vs printJSONValues.
The former can work multiple times, while the latter calls prepareToPrintList(), which stops all timers,
hence making all further attempts to print timers crash.
Would it be possible not to call prepareToPrintList on printJSONValues, or at least make it optional?
I am trying to serialize displayed statistic using PrintStatisticJSON, and it actually crashes if the statistic is printed again
due to stopped timers.
More information about the llvm-dev