Skip to content

Support directly rendering codegen scheduling #1019

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

Mark-Simulacrum
Copy link
Member

This cherry picks a few of the commits from #1005 to build up the ability to use self profile with sqlite (currently using an export of the prod db locally).

The schedule is rendered onto canvas, essentially a subset of the view that crox (and then chrome profiler tooling) provides, but easier to get to and with significantly less complexity. We'll likely want to continue iterating on how to get to these views (currently integrated into the self profile page) and what exactly is displayed -- this isn't really going to mesh well with any kind of query nesting, but seems like a good start still.

Graph drawing is at least partly inspired by Cargo's -Ztimings view.

Example:

rendered page

@Mark-Simulacrum Mark-Simulacrum merged commit cf2b596 into rust-lang:master Sep 18, 2021
@Mark-Simulacrum Mark-Simulacrum deleted the codegen-schedule-direct branch September 18, 2021 17:33
@tgnottingham
Copy link
Contributor

This is really awesome! Feeling inspired to improve codegen scheduling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants