Skip to content

Commit 22a954e

Browse files
Instrument loaned message publication code path (#2240)
Signed-off-by: Christophe Bedard <[email protected]>
1 parent c0d72c3 commit 22a954e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rclcpp/include/rclcpp/publisher.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@ class Publisher : public PublisherBase
456456
do_loaned_message_publish(
457457
std::unique_ptr<ROSMessageType, std::function<void(ROSMessageType *)>> msg)
458458
{
459+
TRACETOOLS_TRACEPOINT(rclcpp_publish, nullptr, static_cast<const void *>(msg.get()));
459460
auto status = rcl_publish_loaned_message(publisher_handle_.get(), msg.get(), nullptr);
460461

461462
if (RCL_RET_PUBLISHER_INVALID == status) {

0 commit comments

Comments
 (0)