[clang] Add time trace scopes to addToCallGraph & getCFG (PR #174717)
Gábor Horváth via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 7 04:07:06 PST 2026
================
@@ -61,6 +62,7 @@ class CallGraph : public DynamicRecursiveASTVisitor {
///
/// Recursively walks the declaration to find all the dependent Decls as well.
void addToCallGraph(Decl *D) {
+ llvm::TimeTraceScope TimeProfile("AddToCallGraph");
----------------
Xazax-hun wrote:
I see. In case we have these patterns elsewhere as well, I am fine with this.
> the profiles would still be correct (if that is your concern).
My main concern is about the profiles being less precise, and having more overhead.
https://github.com/llvm/llvm-project/pull/174717
More information about the cfe-commits
mailing list