From c1e8646e6f0ebd2b1ad58a8f36e1826627df580a Mon Sep 17 00:00:00 2001 From: Christophe Bedard Date: Mon, 15 Mar 2021 17:46:10 -0400 Subject: [PATCH] Add publishing instrumentation Signed-off-by: Christophe Bedard --- rcl/src/rcl/publisher.c | 1 + 1 file changed, 1 insertion(+) diff --git a/rcl/src/rcl/publisher.c b/rcl/src/rcl/publisher.c index d20754dc9..a7c4103ce 100644 --- a/rcl/src/rcl/publisher.c +++ b/rcl/src/rcl/publisher.c @@ -243,6 +243,7 @@ rcl_publish( return RCL_RET_PUBLISHER_INVALID; // error already set } RCL_CHECK_ARGUMENT_FOR_NULL(ros_message, RCL_RET_INVALID_ARGUMENT); + TRACEPOINT(rcl_publish, (const void *)publisher, (const void *)ros_message); if (rmw_publish(publisher->impl->rmw_handle, ros_message, allocation) != RMW_RET_OK) { RCL_SET_ERROR_MSG(rmw_get_error_string().str); return RCL_RET_ERROR;