[clang] [llvm] Use timeTraceAsyncProfilerBegin for Source span (PR #83961)
Zequan Wu via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 11 09:43:13 PDT 2024
https://github.com/ZequanWu commented:
IIUC, the approach you choose here is to let `SemaPPCallbacks` control the "entered file stack" and allow it to remove element (which is file) from middle of the internal stack in `TimeTraceProfiler`, but this creates async event which is not designed for this purpose.
Can we let `SemaPPCallbacks` track the last push file into the stack and when exit file, pop all the elements from the stack until we popped the last pushed file?
https://github.com/llvm/llvm-project/pull/83961
More information about the cfe-commits
mailing list