Skip to content

Commit

Permalink
kram - sort keys
Browse files Browse the repository at this point in the history
  • Loading branch information
alecazam committed Nov 8, 2023
1 parent e7474d4 commit 8d4dea2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/GpuMemDumpPerfetto.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,8 @@ def AddTraceEvents():

# block allocs
blockIndex = 0
for block in poolData['Blocks']:
for blockKey in storted(poolData['Blocks'].keys()):
block = poolData['Blocks'][blockKey]
blockName = "T{} b{} {}".format(poolIndex, blockIndex, block['ID'])
AddBlockName(blockName, blockCounter)
AddTraceEventsBlock(block, blockCounter)
Expand All @@ -353,7 +354,8 @@ def AddTraceEvents():

# pool block allocs
blockIndex = 0
for block in customPoolData['Blocks']:
for blockKey in sorted(customPoolData['Blocks'].keys()):
block = poolData['Blocks'][blockKey]
blockName = 'T{} {} b{} {}'.format(poolIndex, customPoolName, blockIndex, block['ID'])
AddBlockName(blockName, blockCounter)
AddTraceEventsBlock(block, blockCounter)
Expand Down

0 comments on commit 8d4dea2

Please sign in to comment.