pan/perf: Don't count on category definition order in the XML

This commit is contained in:
Boris Brezillon 2026-01-14 11:18:56 +01:00 committed by Christoph Pillmayer
parent 5c32d45ede
commit 34131f71de

View file

@ -154,7 +154,7 @@ def main():
for i in range(0, len(prod.categories)):
category = prod.categories[i]
c.write("{")
c.write("[%s] = {" % CATEGORY_IDX_REMAP[category.name])
c.indent(tab_size)
c.write(".name = \"%s\"," % (category.name))
c.write(".n_counters = %u," % (len(category.counters)))