Skip to content

Commit

Permalink
Instrument loaned message publication code path
Browse files Browse the repository at this point in the history
Signed-off-by: Christophe Bedard <christophe.bedard@apex.ai>
  • Loading branch information
christophebedard authored and eboasson committed Jul 24, 2023
1 parent 34eee4d commit 6e09583
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rmw_cyclonedds_cpp/src/rmw_node.cpp
Expand Up @@ -2084,6 +2084,7 @@ static rmw_ret_t publish_loaned_int(

// if the publisher allow loaning
if (cdds_publisher->is_loaning_available) {
TRACETOOLS_TRACEPOINT(rmw_publish, ros_message);
auto d = new serdata_rmw(cdds_publisher->sertype, ddsi_serdata_kind::SDK_DATA);
d->iox_chunk = ros_message;
// since we write the loaned chunk here, set the data state to raw
Expand Down

0 comments on commit 6e09583

Please sign in to comment.