Skip to content

Commit

Permalink
rmw_take trace points are not drawn
Browse files Browse the repository at this point in the history
Signed-off-by: ISP akm <[email protected]>
  • Loading branch information
xygyo77 committed Oct 19, 2024
1 parent 1c70011 commit e0b8eb1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/caret_analyze/runtime/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ def is_source_timestamp_column(column: str) -> bool:
column = column[:last_slash_index]
return column.endswith('source_timestamp')

def is_rmw_take_column(column):
last_slash_index = column.rfind('/')
if last_slash_index >= 0:
column = column[:last_slash_index]
return column.endswith('rmw_take_timestamp')

column_merger = ColumnMerger()
if include_first_callback and isinstance(targets[0], NodePath):
first_element = targets[0].to_path_beginning_records()
Expand Down Expand Up @@ -238,6 +244,11 @@ def is_source_timestamp_column(column: str) -> bool:
source_columns = \
[column for column in left_records.columns if is_source_timestamp_column(column)]
left_records.drop_columns(source_columns)

rmw_take_column = \
[column for column in left_records.columns if is_rmw_take_column(column)]
# if show rmw_take_timestamp in messageflow, comment out following line.

Check warning on line 250 in src/caret_analyze/runtime/path.py

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (messageflow)
left_records.drop_columns(rmw_take_column)

return left_records

Expand Down

0 comments on commit e0b8eb1

Please sign in to comment.