You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _docs/tutorials/advanced/tracing/index.md
+8-10Lines changed: 8 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,11 +48,11 @@ If the ROS 2 development tools and dependencies are not installed on your machin
48
48
Now we'll download all the necessary packages. First, create your workspace.
49
49
50
50
```bash
51
-
$ mkdir ~/ros2_ws
51
+
$ mkdir -p ~/ros2_ws/src
52
52
$ cd ros2_ws/
53
53
```
54
54
55
-
Then clone everything using the following `.repos` file. It includes the core ROS 2 packages with instrumented versions of `rcl` and `rclcpp`, as well as the tracing tools and tracing analysis repos.
55
+
Then clone everything using the `master``ros2.repos` file, which includes the core ROS 2 packages with instrumented `rcl` and `rclcpp`. We will also need the trace analysis tools.
The last part of the `babeltrace` output is shown above. This is a human-readable version of the raw Common Trace Format (CTF) data, which is a list of events. Each event has a timestamp, an event type, some information on the process that generated the event, and the fields corresponding to the event type. The last events of our trace are pairs of `ros2:callback_start` and `ros2:callback_end` events. Each contains a reference to its corresponding callback.
111
+
The last part of the `babeltrace` output is shown above. This is a human-readable version of the raw Common Trace Format (CTF) data, which is a list of events. Each event has a timestamp, an event type, some information on the process that generated the event, and the fields corresponding to the event type. The last events of our trace are pairs of `ros2:callback_start` and `ros2:callback_end` events. Each one contains a reference to its corresponding callback.
112
112
113
-
It's now time to process the trace data! The `tracetools_analysis` package provides tools to import and process the results. We can first convert the CTF data to a pickle file. Then we can process it to get `pandas` dataframes which we can use later to run analyses.
113
+
It's now time to process the trace data! The `tracetools_analysis` package provides tools to import a trace and process it. Since reading a CTF trace is slow, it first converts it to a file which we can read much faster later on. Then we can process it to get `pandas` dataframes and use those to run analyses.
114
114
115
115
```bash
116
-
$ ros2 run tracetools_analysis convert ~/.ros/tracing/my-tracing-session/ust
117
-
$ ros2 run tracetools_analysis process ~/.ros/tracing/my-tracing-session/ust/pickle
116
+
$ ros2 trace-analysis process ~/.ros/tracing/my-tracing-session/ust/
0 commit comments