Skip to content

Marker table should be optionally sortable by duration (to easily discover the longest restyles, reflows, etc.) #3831

Description

@dholbert

Right now, the marker table is sorted by "Start time". But I would really like to be able to sort it by duration, so that I can easily see e.g. the N longest-duration restyles/reflows/etc (whatever I've filtered for). Intuitively it feels like I should be able to click on the "Duration" header and have it automatically perform a stable-sort via that field; but right now the header doesn't have any effect when clicked.

Here's a sample profile where I was wanting to do this: https://share.firefox.dev/3nUbCqc
(in service of https://bugzilla.mozilla.org/show_bug.cgi?id=1699500 )

Ideally I'd like to be able to look at that^ profile, filter for "style", click something, and immediately be able to say "OK, looks like the longest style is X ms, and the next-longest few were Y ms and Z ms". This helps figure out what (if anything) needs further investigation. (I ended up answering this question myself using some handwritten JS an filteredMarkers in the Web Console, but that's not a great user experience.)

┆Issue is synchronized with this Jira Task

Metadata

Metadata

Assignees

No one assigned

    Labels

    accessibilityRelated to making the profiler UI accessiblemarkersAnything to do with marker data structures, marker chart, or the marker table

    Fields

    Priority

    None yet

    Severity

    None yet

    Jira

    None yet

    Estimate

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions