[llvm-dev] Instrumenting a program for timing
Paul C. Anagnostopoulos via llvm-dev
llvm-dev at lists.llvm.org
Wed Oct 21 06:50:39 PDT 2020
Thanks, I'll check that out.
At 10/21/2020 09:40 AM, Robinson, Paul wrote:
>> -----Original Message-----
>> From: llvm-dev <llvm-dev-bounces at lists.llvm.org> On Behalf Of Paul C.
>> Anagnostopoulos via llvm-dev
>> Sent: Tuesday, October 20, 2020 7:20 PM
>> To: llvm-dev at lists.llvm.org
>> Subject: [llvm-dev] Instrumenting a program for timing
>>
>> Is there a standard method of instrumenting a program so it will
>> optionally display the CPU time for one or more phases? I'd like to do
>> that for TableGen.
>
>Clang has something like that with the -ftime-trace option. This appears
>to make use of the llvm::TimeTraceScope class.
>--paulr
More information about the llvm-dev
mailing list