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

Improve 'perf script' failure error #227

Merged

Conversation

adambratschikaye
Copy link
Contributor

@adambratschikaye adambratschikaye commented Sep 15, 2022

Report an error when running perf script on the perf.data file fails. Currently when perf script fails it just passes empty data on to inferno which results in an unclear error about missing stack data.

Instead, this change checks the exit status of perf script and immediately exits if it failed.

This fixes #226.

Report an error when running 'perf script' on the perf.data file fails.
Currently when 'perf script' fails it just passes empty data on to
`inferno` which results in an unclear error about missing stack data.

Instead, this change checks the exit status of 'perf script' and
immediately exits if it failed.
Copy link
Contributor

@djc djc left a comment

Choose a reason for hiding this comment

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

Looks great, thanks!

@djc djc merged commit 8dd0b89 into flamegraph-rs:main Sep 19, 2022
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.

Unclear error "unable to generate a flamegraph from the collapsed stack data"
2 participants