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

[summarize] Implement diff support for comparing profiles #50

Merged
merged 3 commits into from Jun 23, 2019

Conversation

wesleywiser
Copy link
Member

Closes #33

summarize/src/diff.rs Outdated Show resolved Hide resolved
summarize/src/main.rs Show resolved Hide resolved

fn write_results_json(file: &PathBuf, results: impl Serialize) -> Result<(), Box<dyn Error>> {
let file = BufWriter::new(File::create(file.with_extension("json"))?);
serde_json::to_writer(file, &results)?;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would do the same here -- instead of a BufWriter just write to a vec in memory.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think for now, I'd prefer to leave the standard BufReader`BufWriter` alone. These tools run pretty quick already so I don't think this is going to make a big difference.

summarize/src/signed_duration.rs Outdated Show resolved Hide resolved
summarize/src/signed_duration.rs Outdated Show resolved Hide resolved
@wesleywiser
Copy link
Member Author

I think this is ready to merge. @Mark-Simulacrum is that ok with you?

@Mark-Simulacrum
Copy link
Member

Feel free to merge when ready -- I forget if we have bors or anything setup here so won't do it myself in this case

@wesleywiser wesleywiser merged commit 8bd1782 into rust-lang:master Jun 23, 2019
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.

Summarize diffs
3 participants