From 7e1740a52bce39ec2c349085f5f7f9a6e0017e95 Mon Sep 17 00:00:00 2001 From: Christophe Bedard Date: Mon, 31 Jan 2022 09:27:56 -0500 Subject: [PATCH] Fix subscription instrumentation for ConstSharedPtr[WithInfo]Callback (#1872) Signed-off-by: Christophe Bedard --- rclcpp/include/rclcpp/any_subscription_callback.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rclcpp/include/rclcpp/any_subscription_callback.hpp b/rclcpp/include/rclcpp/any_subscription_callback.hpp index 6a813c222b..e1ac86a230 100644 --- a/rclcpp/include/rclcpp/any_subscription_callback.hpp +++ b/rclcpp/include/rclcpp/any_subscription_callback.hpp @@ -246,6 +246,16 @@ class AnySubscriptionCallback rclcpp_callback_register, (const void *)this, get_symbol(shared_ptr_with_info_callback_)); + } else if (const_shared_ptr_callback_) { + TRACEPOINT( + rclcpp_callback_register, + (const void *)this, + get_symbol(const_shared_ptr_callback_)); + } else if (const_shared_ptr_with_info_callback_) { + TRACEPOINT( + rclcpp_callback_register, + (const void *)this, + get_symbol(const_shared_ptr_with_info_callback_)); } else if (unique_ptr_callback_) { TRACEPOINT( rclcpp_callback_register,