[clang] [time-trace] Add a new time trace scope variable named "ParseDeclarationOrFunctionDefinition". (PR #65268)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 30 08:31:47 PDT 2023


================
@@ -301,6 +301,10 @@ Improvements to Clang's diagnostics
 - Clang now always diagnoses when using non-standard layout types in ``offsetof`` .
   (`#64619: <https://github.com/llvm/llvm-project/issues/64619>`_)
 
+Improvements to Clang's time-trace
+----------------------------------
+- Two time-trace scope variables are added. A time trace scope variable of `ParseDeclarationOrFunctionDefinition` with the function's source location is added to record the time spent parsing the function's declaration or definition. Another time trace scope variable of `ParseFunctionDefinition` is also added to record the name of the defined function.
----------------
AaronBallman wrote:

```suggestion
- Two time-trace scope variables are added. A time trace scope variable of ``ParseDeclarationOrFunctionDefinition`` with the function's source location is added to record the time spent parsing the function's declaration or definition. Another time trace scope variable of ``ParseFunctionDefinition`` is also added to record the name of the defined function.
```
Can you also wrap it to 80 columns?

https://github.com/llvm/llvm-project/pull/65268


More information about the cfe-commits mailing list