adb_profile_chrome: Add perf profiler
commit1c44dae3bc0bd914b98c8217784840d4eef714ac
authorskyostil@chromium.org <skyostil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 4 Jun 2014 15:28:02 +0000 (4 15:28 +0000)
committerskyostil@chromium.org <skyostil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 4 Jun 2014 15:28:02 +0000 (4 15:28 +0000)
treef0049dad05f5c847ad102722bd1d4a83f44b715c
parent01881c08225c4296bc91227e716398710d469415
adb_profile_chrome: Add perf profiler

This patch makes it possible to run the perf profiler
through adb_profile_chrome. The result is a trace file that
contains samples from perf as well as events from Chrome
trace events or systrace.

For example, to find out in which functions CPU time is
being spent:

$ build/android/adb_profile_chrome --browser build --time 5 --perf

BUG=375754
TEST=build/android/chrome_profiler/run_tests
NOTRY=true

Review URL: https://codereview.chromium.org/293193002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274837 0039d316-1c4b-4281-b951-d872f2087c98
build/android/chrome_profiler/main.py
build/android/chrome_profiler/perf_controller.py [new file with mode: 0644]
build/android/chrome_profiler/perf_controller_unittest.py [new file with mode: 0644]
build/android/chrome_profiler/profiler.py
build/android/chrome_profiler/trace_packager.py [new file with mode: 0644]
build/android/chrome_profiler/trace_packager_unittest.py [new file with mode: 0644]