[SystemWebViewShell] Add Tracing API functionality.
Provide a "Enable tracing" option in the menu of the SystemWebViewShell, to demo/test the new Tracing API functionality. This requires Android P SDK which has been dropped upstream recently. When "Enable tracing" is selected the tracing is started. The following configuration is used: - trace web-developer categories - use continuous tracing i.e. a ring buffer When the user un-checks "Enable tracing" in the menu the tracing is stopped and the trace data is written to webview_tracing.json in the application file directory. An alert dialog showing the number of bytes written is shown upon completion. Note: The trace file can be pulled from the device using "adb pull" using the relevant local directory, e.g. $ adb pull /data/user/0/org.chromium.webview_shell/files/webview_tracing.json . BUG=798101 Change-Id: I2a22fbf5f07f12e9c3eadfe9fb027c05b892c092 Reviewed-on: https://chromium-review.googlesource.com/1143820 Commit-Queue: Tim Volodine <timvolodine@chromium.org> Reviewed-by:Richard Coles <torne@chromium.org> Cr-Commit-Position: refs/heads/master@{#578633}
Showing
Please register or sign in to comment