From 934f403c9f7b70701b3321b203f674b3fb7f32a0 Mon Sep 17 00:00:00 2001 From: Christophe Bedard Date: Wed, 26 Jul 2023 09:57:24 -0700 Subject: [PATCH] Instrument loaned message publication code path (#698) Signed-off-by: Christophe Bedard --- rmw_fastrtps_shared_cpp/src/rmw_publish.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/rmw_fastrtps_shared_cpp/src/rmw_publish.cpp b/rmw_fastrtps_shared_cpp/src/rmw_publish.cpp index 7a7d9a74c..d237188ee 100644 --- a/rmw_fastrtps_shared_cpp/src/rmw_publish.cpp +++ b/rmw_fastrtps_shared_cpp/src/rmw_publish.cpp @@ -135,6 +135,7 @@ __rmw_publish_loaned_message( RMW_CHECK_ARGUMENT_FOR_NULL(ros_message, RMW_RET_INVALID_ARGUMENT); auto info = static_cast(publisher->data); + TRACETOOLS_TRACEPOINT(rmw_publish, ros_message); if (!info->data_writer_->write(const_cast(ros_message))) { RMW_SET_ERROR_MSG("cannot publish data"); return RMW_RET_ERROR;