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

via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 13 16:02:21 PDT 2023


================
@@ -1224,6 +1225,9 @@ Parser::DeclGroupPtrTy Parser::ParseDeclOrFunctionDefInternal(
 Parser::DeclGroupPtrTy Parser::ParseDeclarationOrFunctionDefinition(
     ParsedAttributes &Attrs, ParsedAttributes &DeclSpecAttrs,
     ParsingDeclSpec *DS, AccessSpecifier AS) {
+  // Add an enclosing time trace scope for a bunch of small scopes with
+  // "EvaluateAsConstExpr".
+  llvm::TimeTraceScope TimeScope("ParseDeclarationOrFunctionDefinition");
----------------
MaggieYingYi wrote:

Good point, thanks. It is added in the commit https://github.com/llvm/llvm-project/pull/65268/commits/fa0503d3b7.

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


More information about the cfe-commits mailing list