Skip to content
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

Add support for artifact size events #169

Merged
merged 5 commits into from
Aug 2, 2021

Conversation

rylev
Copy link
Member

@rylev rylev commented Jul 23, 2021

This adds support for a new kind of {Raw,Lightweight,}Event: integer events in order to support artifact size measurements. In the meantime it also refactors the other events to be more clearly about timestamps. Some code assumes timestamps, and this change makes it more clear where those assumptions are.

In order to test this, using a compiler built with rust-lang/rust#87404 is necessary.

Here's what summarize produces now for artifact sizes:
1e7aeb3e-eb73-4f90-a4b9-631a1d52f844

@rylev rylev marked this pull request as draft July 23, 2021 11:48
@rylev rylev changed the title Add support for integer events Add support for artifact size events Jul 23, 2021
@rylev rylev marked this pull request as ready for review July 26, 2021 09:35
@rylev
Copy link
Member Author

rylev commented Jul 26, 2021

r? @wesleywiser

analyzeme/src/event_payload.rs Outdated Show resolved Hide resolved
analyzeme/src/event_payload.rs Outdated Show resolved Hide resolved
analyzeme/src/event_payload.rs Outdated Show resolved Hide resolved
analyzeme/src/event_payload.rs Outdated Show resolved Hide resolved
analyzeme/src/profiling_data.rs Show resolved Hide resolved
@wesleywiser wesleywiser merged commit 2f68b69 into rust-lang:master Aug 2, 2021
@rylev rylev deleted the integer-support branch August 3, 2021 08:37
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Oct 19, 2021
…sleywiser

Add support for artifact size profiling

This adds support for profiling artifact file sizes (incremental compilation artifacts and query cache to begin with).

Eventually we want to track this in perf.rlo so we can ensure that file sizes do not change dramatically on each pull request.

This relies on support in measureme: rust-lang/measureme#169. Once that lands we can update this PR to not point to a git dependency.

This was worked on together with `@michaelwoerister.`

r? `@wesleywiser`
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