[analyzer] Refine TimeTrace name for dispatchWorkItem (#128352)

Fixes
https://github.com/llvm/llvm-project/pull/125508#discussion_r1965038954
This commit is contained in:
Balazs Benics
2025-02-24 08:36:05 +01:00
committed by GitHub
parent 11fdeadbdf
commit 6b5bde697b
2 changed files with 2 additions and 2 deletions

View File

@@ -183,7 +183,7 @@ bool CoreEngine::ExecuteWorkList(const LocationContext *L, unsigned MaxSteps,
static std::string timeTraceScopeName(const ProgramPoint &Loc) {
if (llvm::timeTraceProfilerEnabled()) {
return llvm::formatv("Loc {0}",
return llvm::formatv("dispatchWorkItem {0}",
ProgramPoint::getProgramPointKindName(Loc.getKind()))
.str();
}

View File

@@ -23,7 +23,7 @@
// The trace also contains durations of each step, but they are so short that they are not reliably present
// in each run. However, they are also aggregated into Total *, for example:
//
// CHECK: "name": "Total Loc PostStmt",
// CHECK: "name": "Total dispatchWorkItem PostStmt",
// CHECK-NEXT: "args": {
// CHECK-NEXT: "count": {{[0-9]+}},
// CHECK-NEXT: "avg ms": {{[0-9]+}}