Add support for html-packaged trace files to adb_profile_chrome. The
--html option will cause the trace file to be serialized into an html
file that contains a snapshot of the Trace Viewer from the Chromium
source tree. The resulting file has no other dependencies and therefore
does not require a specific version of Chrome for viewing.
This patch also adds the --view option for automatically opening the
written trace file in a browser.
NOTRY=true
Review URL: https://codereview.chromium.org/48733003
git-svn-id: http://src.chromium.org/svn/trunk/src/build@231333 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Add support for capturing Android Systrace profiles in telemetry. The
resulting profile will contain events from both the Chrome trace as well
as systrace.
TEST=tools/perf/run_benchmark run --profiler=android-systrace --browser=android-chrome smoothness.top_25 --page-filter=facebook
Review URL: https://codereview.chromium.org/25883003
git-svn-id: http://src.chromium.org/svn/trunk/src/build@229130 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This patch adds systrace support to adb_profile_chrome. You can either
either capture a standalone systrace or a combined Chrome + systrace
which includes data from both sources.
The advantages of a combined trace compared to a normal systrace with
the 'webview' category are:
- Support for advanced Chrome trace features such as object dumps
(e.g., --trace-cc and --trace-gpu), instant events ('X') and flow
events.
- Reduced tracing overhead since Chrome trace events do not need to
make the trip through the kernel trace marker file.
Note that viewing combined traces requires some further work in Trace
Viewer to properly align the clocks from different event streams.
This patch also removes the standalone --start, --stop and --download
options from the script because they are of dubious value and supporting
them with systrace is not straightforward.
BUG=294883
Review URL: https://codereview.chromium.org/25686006
git-svn-id: http://src.chromium.org/svn/trunk/src/build@228669 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
adb_profile_chrome is used to capture and download traces from Chrome on
Android. To prepare for future feature improvements and reduce the
maintenance burden, rewrite this bash script in Python.
This reimplementation keeps all the features and command line options of
the original and adds these new ones:
--trace-cc Enable extra trace categories for compositor frame
viewer data.
--trace-gpu Enable extra trace categories for GPU data.
-z, --compress Compress the resulting trace with gzip.
BUG=299822,294883
Review URL: https://codereview.chromium.org/25044004
git-svn-id: http://src.chromium.org/svn/trunk/src/build@226259 4ff67af0-8c30-449e-8e8b-ad334ec8d88c