-
Notifications
You must be signed in to change notification settings - Fork 212
optionally collect compiler metrics #2812
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
base: master
Are you sure you want to change the base?
Conversation
if self.config.compiler_metrics_collection_path.is_some() { | ||
// set the `./target/metrics/` directory inside the build container | ||
// as a target directory for the metric files. | ||
let flag = "-Zmetrics-dir=/opt/rustwide/target/metrics"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Were you able to make it work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, it works like this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
( there are output files generated)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even for:
#![feature(doc_cfg)]
//! ```
//! macro_rules! bla {
//! ($($x:tt)*) => {}
//! }
//! ```
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have a crate / release on crates.io I can just run it with?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it's just a test I wrote locally. You can do so as well:
cargo new --lib foo
cd foo
# copy content into it
# run cargo doc
just a draft as a base for discussion.
Generally we want to separate the build output between builds / releases so I'm just using the target directory and copy over the json files afterwards.
What's missing is some kind of ICE protection, where we would retry the build without metrics in case of ICEs, or just collect metrics on the first try.
Also I would like to add tests.