-
Notifications
You must be signed in to change notification settings - Fork 14
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 flamegraph diffs to the showdiff report #264
Add flamegraph diffs to the showdiff report #264
Conversation
Both baseline-target and target-baseline diffs are generated and displayed. Also, the height computation of the generated images has been adjusted to reduce the amount of unused space.
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.
Can you elaborate in more details, what and why is changed here? It's not that clear, since flamegraph diffs were there initially as well.
perun/view/flamegraph/flamegraph.py
Outdated
title = title if title != "" else f"{profile_type} consumption of {cmd} {workload}" | ||
units = mapping.get_unit(mapping.get_readable_key(profile_key)) | ||
|
||
# flame = convert.to_flame_graph_format(profile, profile_key=profile_key, minimize=minimize) |
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.
Why is this commented out here?
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.
Good catch, this comment shouldn't be there. I'll remove it.
Sure, originally, the showdiff report had some code to generate flamegraph diff, but the call to the This PR re-enables flamegraph generation and moreover:
|
Nice, thank, sounds good. Please copy this to the PR description. Very good for fixing the height, it was quite hacked. |
b375796
to
768f8cd
Compare
Originally, the showdiff report had some code to generate flamegraph diff, but the call to the generate_flamegraphs function had skip_diff=True, so no diff would be generated.
This PR re-enables flamegraph generation and moreover: