Merge branch '75-ros2-trace-exposes-ust-events-but-calls-them-ros-events' into 'master'
Generalize "ROS UST" events to just "userspace" in ros2 trace Closes #75 See merge request micro-ROS/ros_tracing/ros2_tracing!158
This commit is contained in:
commit
8b91e0bcc6
2 changed files with 4 additions and 2 deletions
|
@ -49,8 +49,8 @@ def add_arguments(parser: argparse.ArgumentParser) -> None:
|
|||
help='path of the base directory for trace data (default: %(default)s)')
|
||||
events_ust_arg = parser.add_argument( # type: ignore
|
||||
'-u', '--ust', nargs='*', dest='events_ust', metavar='EVENT',
|
||||
default=names.DEFAULT_EVENTS_ROS,
|
||||
help='the ROS UST events to enable (default: see tracetools_trace.tools.names) '
|
||||
default=names.DEFAULT_EVENTS_UST,
|
||||
help='the userspace events to enable (default: see tracetools_trace.tools.names) '
|
||||
'[to disable all UST events, '
|
||||
'provide this flag without any event name]')
|
||||
events_ust_arg.completer = DefaultArgValueCompleter(events_ust_arg) # type: ignore
|
||||
|
|
|
@ -75,6 +75,8 @@ DEFAULT_EVENTS_ROS = [
|
|||
'ros2:callback_end',
|
||||
]
|
||||
|
||||
DEFAULT_EVENTS_UST = DEFAULT_EVENTS_ROS
|
||||
|
||||
CONTEXT_TYPE_CONSTANTS_MAP = {
|
||||
'pid': 'EVENT_CONTEXT_PID',
|
||||
'procname': 'EVENT_CONTEXT_PROCNAME',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue