Skip to content

Heatmap UI #89

@theihor

Description

@theihor

When BPF verifier rejects a program due to instruction limit, it usually happens because of an unbounded loop.

However, it's not always easy to even figure out start and end of a loop from a linear log.

To help with this, we can introduce a UI showing which instructions are "hot".
I have a rough draft of how that could work here: master...heatmap

Screenshots from the ugly draft Image Image

Basically, we want to highlight or mark instructions depending on the frequency of them appearing in the log. It can be as simple as looking at the PC for identifying unique instructions and counting them.

The UI could be an additional column in main view with a hint, for example. We could also provide a separate view tab, showing only unique instructions, getting a view similar to objdump with such highlighting.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions