From db98d1256c6024f83c3ec700792f96c4e8e1207f Mon Sep 17 00:00:00 2001 From: Christophe Bedard Date: Wed, 19 Jul 2023 12:26:15 -0700 Subject: [PATCH] Instrument loaned message publication code path Signed-off-by: Christophe Bedard --- rclcpp/include/rclcpp/publisher.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/rclcpp/include/rclcpp/publisher.hpp b/rclcpp/include/rclcpp/publisher.hpp index 6025125db1..0ca79768d1 100644 --- a/rclcpp/include/rclcpp/publisher.hpp +++ b/rclcpp/include/rclcpp/publisher.hpp @@ -456,6 +456,7 @@ class Publisher : public PublisherBase do_loaned_message_publish( std::unique_ptr> msg) { + TRACETOOLS_TRACEPOINT(rclcpp_publish, static_cast(msg)); auto status = rcl_publish_loaned_message(publisher_handle_.get(), msg.get(), nullptr); if (RCL_RET_PUBLISHER_INVALID == status) {