-
Notifications
You must be signed in to change notification settings - Fork 35
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
feat(processing_time_visualizer): add summarize option #90
feat(processing_time_visualizer): add summarize option #90
Conversation
Signed-off-by: a-maumau <[email protected]>
Signed-off-by: a-maumau <[email protected]>
Signed-off-by: a-maumau <[email protected]>
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.
Summarized visualization is much better to analyze the overall processing time.
LGTM!
Thank you for the PR. I also thought this feature was necessary. I'll review it, so please wait a moment. |
Signed-off-by: Y.Hisaki <[email protected]>
@a-maumau In the following video, the summarize mode is toggled by pressing the 's' key. |
…essing_time_visualizer feat(processing_time_visualizer): make summarize option dynamic
@yhisaki Yes, I agree with that. |
By the way, should we add I think it may be quite obvious that it is total processing time, but for just in case. |
In terms of improving usability, it would be better!
line += (
f"{node.name}: total {node.processing_time:.2f} [ms], avg {node.processing_time / node.run_count:.2f} [ms], run_count: {node.run_count}"
if summarize
else f"{node.name}: {node.processing_time:.2f} [ms]"
) |
Signed-off-by: a-maumau <[email protected]>
@a-maumau |
@yhisaki |
Description
This PR will add a summarized output option for
processing_time_visualizer
.In some packages, the visualized information might get too long for investigation.
For profiling purposes, it may be better to have an option for visualizing the total processing time and the total number of times it is called.
Use
--summarize
for testing it.sample output
Without the summarize option:
output
With
--summarize
:Related links
Tests performed
Tested by checking the node names and their counts in the same tree.
Notes for reviewers
Interface changes
Effects on system behavior
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.
In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.