Skip to content

Added a Perfetto python dump #382

Open
@alecazam

Description

@alecazam

This uses the Catapult flame chart json format for timings. This can then be imported into Perfetto.

Allocations are displayed in tracks just like in the png, but with names, and the values can be zoomed in-out and scrolled through. Perfetto seems to keep trying to kill off this json, without offering an alternative, but it works okay for this.

Timestamp is the offset, and duration correspond to size. These are all displayed as timings (either ns or ms), but should all be drawn with rect corresponding to the sizes. Perfetto still doesn't have hover over the values to expand name/duration, but that would help here.

https://github.com/alecazam/kram/blob/main/scripts/GpuMemDumpPerfetto.py

Here's a screenshot of Perfetto with the default dump. "M" indicates free blocks, since empty string seems to break Perfetto. And I can't specify colors either. But unique names each get pseudo-colored in a block track.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions