Граф коммитов

6 Коммитов

Автор SHA1 Сообщение Дата
skyostil@chromium.org a33e294a3c android: Reimplement adb_profile_chrome in Python
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
2013-10-01 17:45:20 +00:00
skyostil@google.com b257fe98a3 Make adb_profile_chrome wait longer before downloading trace file
Reintroduce the delay to adb_profile_chrome before it attempts to download a trace file. This reduces the chances that a partially written trace file gets downloaded.

NOTRY=true
R=tomhudson@google.com

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@221190 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-09-04 15:27:52 +00:00
skyostil@chromium.org e319e36d77 android: Wait for Chrome to finish writing trace file before downloading
When downloading the latest trace file from Chrome, wait for Chrome to
actually finish writing it to avoid getting back a partially written
trace.

Chrome logs two different messages related to tracing:

1. "Logging performance trace to file [...]"
2. "Profiler finished. Results are in [...]"

The first one is printed when tracing starts and the second one indicates
that the trace file is ready to be downloaded.

We have to look for both of these messages to make sure we get the results
from the latest trace and that the trace file is complete. This is done by
first looking for the last instance of the first message and then checking
for the second message in the remaining part of the log.

Review URL: https://chromiumcodereview.appspot.com/23477016

git-svn-id: http://src.chromium.org/svn/trunk/src/build@220298 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-29 14:38:51 +00:00
wangxianzhu@chromium.org 7ef6ff9245 Add --continous parameter for adb_profile_chrome
If specified, RECORD_CONTINUOUSLY mode will be used for profiling.

BUG=none
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/22806005

git-svn-id: http://src.chromium.org/svn/trunk/src/build@217802 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-15 17:02:58 +00:00
pdr@chromium.org a1f4b3f7de Make adb_profile_chrome work on OSX
adb_profile_chrome relies on regular expression matching to pull the
correct trace file from the device. Unfortunatey, OSX ships with
a version of sed from 2005 which doesn't support matching of newline
characters (see
http://www.culmination.org/2008/02/sed-on-mac-os-x-105-leopard/). This
patch switches to perl, making adb_profile_chrome work on OSX.

BUG=

Review URL: https://chromiumcodereview.appspot.com/20022002

git-svn-id: http://src.chromium.org/svn/trunk/src/build@213404 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-24 11:05:12 +00:00
wangxianzhu@chromium.org 0872b7c4ef Upstream adb_profile_chrome
This is for external developers to profile official chrome build.

The default package name is changed to "com.android.chrome".

NOTRY=true
BUG=255178

Review URL: https://chromiumcodereview.appspot.com/18174005

git-svn-id: http://src.chromium.org/svn/trunk/src/build@209195 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-28 18:22:22 +00:00