[llvm-dev] Instrumenting a program for timing
Robinson, Paul via llvm-dev
llvm-dev at lists.llvm.org
Wed Oct 21 06:40:37 PDT 2020
> -----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