[analyzer] Refine TimeTrace name for dispatchWorkItem (#128352)
Fixes https://github.com/llvm/llvm-project/pull/125508#discussion_r1965038954
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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]+}}
|
||||
|
||||
Reference in New Issue
Block a user