-
Notifications
You must be signed in to change notification settings - Fork 566
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(autoware_universe_utils): add TimeKeeper to track function's processing time #7754
base: main
Are you sure you want to change the base?
Conversation
…cessing time Signed-off-by: Takayuki Murooka <[email protected]>
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
Signed-off-by: Takayuki Murooka <[email protected]>
Signed-off-by: Y.Hisaki <[email protected]>
add new msg |
Signed-off-by: Y.Hisaki <[email protected]>
void TimeNode::construct_time_tree_msg( | ||
tier4_debug_msgs::msg::TimeTree & time_tree_msg, const int parent_id) | ||
{ | ||
auto time_node_msg = std::make_shared<tier4_debug_msgs::msg::TimeNode>(); |
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.
Any reason to use shared_ptr?
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.
it's my mistake. i fixed it.
Signed-off-by: Y.Hisaki <[email protected]>
Signed-off-by: Y.Hisaki <[email protected]>
Signed-off-by: Y.Hisaki <[email protected]>
msg
terminal output
|
Signed-off-by: Y.Hisaki <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7754 +/- ##
==========================================
+ Coverage 28.66% 28.69% +0.03%
==========================================
Files 1588 1593 +5
Lines 116375 116403 +28
Branches 49702 49781 +79
==========================================
+ Hits 33359 33403 +44
- Misses 73938 74000 +62
+ Partials 9078 9000 -78
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Y.Hisaki <[email protected]>
Description
Added a class to track the function's processing time.
Terminal (when
show_on_terminal
is True) orros2 topic echo /planning/scenario_planning/lane_driving/motion_planning/path_optimizer/debug/processing_time_detail --field data
Related links
Parent Issue:
How was this PR tested?
Notes for reviewers
None.
Interface changes
None.
Effects on system behavior
None.