[clang] [analyzer] Add time-trace scopes for high-level analyzer steps (PR #125508)
Arseniy Zaostrovnykh via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 4 00:48:19 PST 2025
necto wrote:
> Does this also work when CSA is called through clang-tidy? The analyzer profiling data in missing in the `--enable-check-profile` output - see #73673?
As far as I know, it does not work out of the box with clang-tidy. Time tracing works only if you setup a profiler singleton instance with `llvm::timeTraceProfilerInitialize`, and it is invoked from the clang driver (clang/tools/driver/cc1_main.cpp) and some other non-clang tools, but not from clang-tidy. It should be relatively easy to add, but I don't want to extend the scope of this PR.
https://github.com/llvm/llvm-project/pull/125508
More information about the cfe-commits
mailing list