viz: tabulate pmc (#13574)

* viz: tabulate pmc

* linter

* enable nesting

* pmc comes before waves
This commit is contained in:
qazal
2025-12-05 03:08:39 +08:00
committed by GitHub
parent 42f6cf3a90
commit d7caae5f61
3 changed files with 17 additions and 6 deletions

View File

@@ -160,8 +160,8 @@ def decode(profile:list[ProfileEvent]) -> _ROCParseCtx:
def print_pmc(ev:ProfilePMCEvent) -> None:
ptr = 0
view = memoryview(ev.blob).cast('Q')
for s in ev.sched:
view = memoryview(ev.blob).cast('Q')
print(f"\t{s.name}")
for xcc, inst, se_idx, sa_idx, wgp_idx in itertools.product(range(s.xcc), range(s.inst), range(s.se), range(s.sa), range(s.wgp)):
print(f"\t\tXCC {xcc} Inst {inst:<2} SE {se_idx} SA {sa_idx} WGP {wgp_idx}: {view[ptr]:#x}")