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/contributing/common-tasks.md
+29-1Lines changed: 29 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -168,7 +168,35 @@ was built with we prompt the user to update.
168
168
6. If special handling in `trace_processor` is desired update [src/trace_processor/importers/ftrace/ftrace_parser.cc](/src/trace_processor/importers/ftrace/ftrace_parser.cc) to parse the event.
169
169
7. Upload and land your change as normal.
170
170
171
-
Here is an [example change](https://android-review.googlesource.com/c/platform/external/perfetto/+/1290645) which added the `ion/ion_stat` event.
171
+
Here is an [example change](https://android-review.googlesource.com/c/platform/external/perfetto/+/3343525) which added a new event. Note: Perfetto's source of truth has moved to Github sent the change was made so while the content of that change is accurate, you should send the patch via Github *not* on AOSP Gerrit.
172
+
173
+
To test your changes, you can sideload your locally built `tracebox` binary on an Android device. See [Sideloading on Android](#sideloading) for more details.
174
+
175
+
## {#sideloading} Sideloading on Android
176
+
177
+
To test changes on an Android device (e.g. when adding a new ftrace event),
178
+
you can use the `record_android_trace` script to sideload a locally built
179
+
`tracebox` binary.
180
+
181
+
1. Build `tracebox` for Android.
182
+
See [Getting Started](getting-started.md#building) for instructions
183
+
on how to configure the build for Android.
184
+
```bash
185
+
# This assumes you have configured out/android per the instructions linked above.
186
+
tools/ninja -C out/android_release_arm64 tracebox
187
+
```
188
+
189
+
2. Use `record_android_trace` to sideload and record a trace:
0 commit comments