[clang] [analyzer] Add time-trace scopes for high-level analyzer steps (PR #125508)
Gábor Horváth via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 4 03:20:19 PST 2025
================
@@ -134,6 +135,14 @@ static void expandGraphWithCheckers(CHECK_CTX checkCtx,
namespace {
+std::string checkerScopeName(StringRef name, const CheckerBase *checker) {
+ if (!llvm::timeTraceProfilerEnabled())
+ return "";
+ std::string checkerName =
----------------
Xazax-hun wrote:
Nit: checkerName could be a StringRef removing one allocation.
https://github.com/llvm/llvm-project/pull/125508
More information about the cfe-commits
mailing list