Fix subscription instrumentation for ConstSharedPtr[WithInfo]Callback (#1872)

Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
This commit is contained in:
Christophe Bedard 2022-01-31 09:27:56 -05:00 committed by GitHub
parent a8baa3ce88
commit 7e1740a52b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -246,6 +246,16 @@ public:
rclcpp_callback_register, rclcpp_callback_register,
(const void *)this, (const void *)this,
get_symbol(shared_ptr_with_info_callback_)); 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_) { } else if (unique_ptr_callback_) {
TRACEPOINT( TRACEPOINT(
rclcpp_callback_register, rclcpp_callback_register,