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

144 Коммитов

Автор SHA1 Сообщение Дата
jbudorick@chromium.org e500a98327 [Android] Move screenshot implementation back into AndroidCommands.
BUG=267773

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@264674 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-17 23:46:31 +00:00
cjhopman@chromium.org 0200fcafa9 Fix screenshot.py
build/android/screenshot.py was creating a DeviceUtils. Then grabbing
it's old_interface (i.e. an AndroidCommands) and calling screenshot on
that. That then called TakeScreenshot from
build/android/pylib/screenshot.py passing itself. But
build/android/pylib/screenshot.py expects a DeviceUtils, not an
AndroidCommands. So wrap the AndroidCommands back into a DeviceUtils
first.

build/android/screenshot.py could probably just call into
build/android/pylib/screenshot.py directly.

TBR=jbudorick
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@263157 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-11 03:00:42 +00:00
jbudorick@chromium.org 13b8cb19e8 [Android] Change object types from AndroidCommands to DeviceUtils in build/android/.
BUG=267773

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@263055 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-10 19:37:30 +00:00
qsr@chromium.org 7906ce40fb Update usb charging command to wait for it to succeed.
R=tonyg@chromium.org,pliard@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@262512 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-08 21:39:21 +00:00
jbudorick@chromium.org c391999850 Make GetFilesChanged work with copied files.
BUG=358028

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@261466 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-03 17:39:01 +00:00
qsr@chromium.org fab40f6b60 Adding battery control API for android.
Also use python __getattr__ to automatically delegate methods from
tools/telemetry/telemetry/core/backends/adb_commands.py to
build/android/pylib/android_commands.py

R=pliard@chromium.org, tonyg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@261134 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-02 16:00:16 +00:00
jbudorick@chromium.org 4f52affd41 [Android] Extract device blacklisting into its own module.
BUG=267773

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@260645 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-03-31 21:12:37 +00:00
tonyg@chromium.org b62fcac6f2 Replace GetHostSize with a cross-platform implementation.
This is in preparation for Telemetry for Android devices with a Mac host.

BUG=355646

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@259265 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-03-25 18:28:56 +00:00
aberent@chromium.org 9e08382ec1 [Telementry][Android] Only copy changed or missing files of profile
Copying the files of a profile, even within a device, can be painfully
slow. To speed this up only copy changed files, and delete new files.

BUG=350032

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@256954 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-03-13 23:58:42 +00:00
jbudorick@chromium.org dd84dd3def [Android] Lint the rest of pylib.
BUG=168518

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@256429 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-03-12 04:57:57 +00:00
navabi@google.com 861fdce6b2 GetAttachedDevices() should not include bad devices listed in .bad_devices file.
BUG=334724
TBR=craigdh@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@254905 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-03-05 01:35:38 +00:00
tonyg@chromium.org 29794359d3 Make api_strict_mode the default in AndroidCommands.
As far as I can tell, everything should be compatible now and
this will remove spam from various logs.

If anything major breaks we should be able to find and fix
quickly or else revert this.

BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@253955 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-27 22:50:42 +00:00
jbudorick@chromium.org 41ed360447 Revert of Enable presubmit pylint in build/android. (https://codereview.chromium.org/132463007/)
Reason for revert:
This patch is probably the cause of crbug.com/342539.

Original issue's description:
> Enable presubmit pylint in build/android.
> 
> BUG=168518
> 
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=249793

TBR=craigdh@chromium.org,frankf@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=168518

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@250269 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-11 01:47:41 +00:00
jbudorick@chromium.org 3d8bcfb710 Enable presubmit pylint in build/android.
BUG=168518

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@249793 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-07 21:34:23 +00:00
b.kelemen@samsung.com e727e8d042 Drop warnings from adb shell output
This is a quick and dirty fix for a problem that occurs to me when
trying to run instrumentation tests in a simulator.
For some reason 'pm path org.chromium.content_shell_apk.tests' outputs
a warning message in my environment that confuses the python scripts
and they end up calling md5sum for the root directory which is a bit
slow... The real fix would be to be able drop the stderr of the command
but it needs a lot of plumbing and probably there is not that much chance
that something like that will happen again for someone.

BUG=334439

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@247742 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-29 21:27:35 +00:00
tonyg@chromium.org 52aa57cf76 Remove some spam output when starting Telemetry.
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@242266 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-21 05:49:27 +00:00
skyostil@chromium.org 092878c4ca Silence warning about falling back to checked-in adb binary
There's no need to print out a warning about falling back to the
checked-in adb binary every time telemetry is run. Also turn ADB_PATH
into a memoized function to remove side effects from importing
constants.py. This also ensures the right logging level is set before
the path is determined so the warning is still printed in debug mode.

BUG=329317

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@241854 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-19 13:53:47 +00:00
pliard@chromium.org d051faae49 Revert "Revert 239784 "Make page_cycler.py fully measure memory for each...""
media.media_cns_cases was failing with the following error:
TypeError: AddResults() takes at least 3 arguments (3 given)

BUG=323494
R=shadi@chromium.org, shadi@google.com, tonyg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@241537 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-18 11:23:04 +00:00
frankf@chromium.org a392617b9e [Android] Dismiss crash dialogs during instrumentation test teardown.
This works for error/ANR dialogs for JB+.

BUG=327840
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@240650 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-13 14:59:16 +00:00
pliard@chromium.org d7f66e55a3 Revert 239784 "Make page_cycler.py fully measure memory for each..."
> Make page_cycler.py fully measure memory for each page.
> 
> Telemetry makes the distinction between metrics collected for each page and for
> each page set. The fine-grained memory metrics were collected only per page set
> (although there was some histogram data collected per page).
> 
> This CL makes the memory metric module systematically report the whole data per
> page (and not only per page set) so that we can measure pages independently.
> The per page set memory metric collection is now a no-op.
> 
> BUG=323494
> 
> Review URL: https://codereview.chromium.org/91573003

TBR=pliard@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@239791 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-10 16:23:15 +00:00
pliard@chromium.org 17da6cd19a Make page_cycler.py fully measure memory for each page.
Telemetry makes the distinction between metrics collected for each page and for
each page set. The fine-grained memory metrics were collected only per page set
(although there was some histogram data collected per page).

This CL makes the memory metric module systematically report the whole data per
page (and not only per page set) so that we can measure pages independently.
The per page set memory metric collection is now a no-op.

BUG=323494

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@239784 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-10 15:13:57 +00:00
pliard@chromium.org 6f9dc53652 Add instance-level in-memory cache for PushIfNeeded().
This speeds up PushIfNeeded() execution times on a same instance of
AndroidCommands for repetitive files. This can be achieved by mapping host file
paths to their mtime at push time as tonyg@ pointed out although this assumes
that the device doesn't modify the files.

This is needed to make PurgeUnpinnedAshmem() reasonably fast to execute in
Telemetry. This CL decreases by 40 secs the execution time of netsim.top_10
whem memory is measured for each page (and PurgeUnpinnedAshmem() is called
before each measurement).

BUG=323494,326929
R=bulach@chromium.org, craigdh@chromium.org, tonyg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@239757 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-10 11:27:43 +00:00
tonyg@chromium.org 53316d2f0d Factor out a system_properties interface for interacting with getprop/setprop.
Also, teach it to cache read-only properties so that we don't hit the device so
often. This caching is a prereq for speed index support in Telemetry which would
like to query these often.

BUG=323813

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@238601 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-04 06:23:44 +00:00
primiano@chromium.org a00b91d193 [Telemetry] Refactor common Android test harness functions.
This is a reland of crrev.com/62953024 which was reverted because
it broke other platforms.

Refactoring common cleanup code required by both
android_browser_finder.py and perf/setup.py and moving it into
pyblib/utils/test_environment.py.
Also, this change avoids killing twice the adb server when running
in a bot environment, where the adb restart is already invoked by
the bot steps.

BUG=268450
R=bulach@chromium.org,tonyg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@237815 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-28 18:02:32 +00:00
bulach@chromium.org c60e3f540f Android: makes "RestartAdbdOnDevice" more robust.
Some bots fail on the command that kills adbd on the device,
even though the device should be online and available.

BUG=322132

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@237708 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-28 06:35:32 +00:00
thakis@chromium.org dc9851ae43 Revert 237667 "[Telemetry] Refactor common Android test harness ..."
http://build.chromium.org/p/chromium.chromiumos/builders/ChromiumOS%20%28amd64%29/builds/12649/steps/BuildPackages/logs/stdio

autotest-chrome-0.0.1-r3242: ERROR:root:bluetooth_RegressionClient import error: No module named telemetry.core.  Skipping bluetooth_RegressionClient
autotest-chrome-0.0.1-r3242: Traceback (most recent call last):
autotest-chrome-0.0.1-r3242:   File "/build/amd64-generic/tmp/portage/chromeos-base/autotest-chrome-0.0.1-r3242/work/autotest-work/client/bin/setup_job.py", line 72, in init_test
autotest-chrome-0.0.1-r3242:     exec import_stmt + '\n' + init_stmt in locals_dict, globals_dict
autotest-chrome-0.0.1-r3242:   File "<string>", line 1, in <module>
autotest-chrome-0.0.1-r3242:   File "/build/amd64-generic/tmp/portage/chromeos-base/autotest-chrome-0.0.1-r3242/work/autotest-work/client/site_tests/bluetooth_RegressionClient/bluetooth_RegressionClient.py", line 7, in <module>
autotest-chrome-0.0.1-r3242:     from autotest_lib.client.cros.bluetooth import bluetooth_semiauto_helper
autotest-chrome-0.0.1-r3242:   File "/build/amd64-generic/tmp/portage/chromeos-base/autotest-chrome-0.0.1-r3242/work/autotest-work/client/cros/bluetooth/bluetooth_semiauto_helper.py", line 10, in <module>
autotest-chrome-0.0.1-r3242:     from autotest_lib.client.cros import semiauto_framework
autotest-chrome-0.0.1-r3242:   File "/build/amd64-generic/tmp/portage/chromeos-base/autotest-chrome-0.0.1-r3242/work/autotest-work/client/cros/semiauto_framework.py", line 9, in <module>
autotest-chrome-0.0.1-r3242:     from autotest_lib.client.common_lib.cros import chrome
autotest-chrome-0.0.1-r3242:   File "/build/amd64-generic/tmp/portage/chromeos-base/autotest-chrome-0.0.1-r3242/work/autotest-work/client/common_lib/cros/chrome.py", line 7, in <module>
autotest-chrome-0.0.1-r3242:     from telemetry.core import browser_finder, browser_options, exceptions
autotest-chrome-0.0.1-r3242: ImportError: No module named telemetry.core

> [Telemetry] Refactor common Android test harness functions.
> 
> Refactoring common cleanup code required by both
> android_browser_finder.py and perf/setup.py and moving it into
> pyblib/utils/test_environment.py.
> Also, this change avoids killing twice the adb server when running
> in a bot environment, where the adb restart is already invoked by
> the bot steps.
> 
> BUG=268450
> R=bulach@chromium.org,tonyg@chromium.org
> NOTRY=true
> 
> Review URL: https://codereview.chromium.org/62953024

TBR=primiano@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@237674 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-28 05:15:37 +00:00
primiano@chromium.org 92461c7d48 [Telemetry] Refactor common Android test harness functions.
Refactoring common cleanup code required by both
android_browser_finder.py and perf/setup.py and moving it into
pyblib/utils/test_environment.py.
Also, this change avoids killing twice the adb server when running
in a bot environment, where the adb restart is already invoked by
the bot steps.

BUG=268450
R=bulach@chromium.org,tonyg@chromium.org
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@237667 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-28 03:50:22 +00:00
frankf@chromium.org 840475656a [Android] Send minidump service intent as root.
Also improve exception message.

BUG=None
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@236280 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-20 20:47:46 +00:00
frankf@chromium.org 524f350f20 [Android] Enable starting the crash upload service using an intent
This utility can be used by stability tests to upload any crashers
before the profile is cleared.

BUG=None
R=feng@chromium.org, yfriedman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@235229 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-14 20:57:45 +00:00
pliard@chromium.org 1c4b751d6b Purge unpinned ashmem before parsing /proc/$pid/smaps.
This will help stabilize memory measurements so that memory regressions can't
be hidden when unpinned ashmem gets purged by the kernel.

BUG=311633

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@235115 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-14 11:00:30 +00:00
pliard@chromium.org 6a48bc1c26 Make Telemetry report VM peak metric on Android.
BUG=311633

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@233861 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-08 11:19:15 +00:00
skyostil@chromium.org 8a87d9960c android: Add screen recording tool
Add a tool to record screen capture videos from Android devices. This
patch introduces both a standalone tool as well as a telemetry profiler
which captures a video of a telemetry run.

Note that the screen recording functionality requires Android KitKat or
later.

TEST=tools/perf/run_benchmark run --profiler=android-screen-recorder --browser=android-chrome smoothness.top_25 --page-filter=news.yahoo

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@233686 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-07 21:17:25 +00:00
aberent@chromium.org adf1791c86 Make PushIfNeeded do what is says.
PushIfNeeded was pushing unconditionally when either the source or destination directory included a symbolic link it its path. This CL fixes that.

NOTRY=True
BUG=314578

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@233387 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-06 21:59:56 +00:00
craigdh@chromium.org 11576da222 [android] Clean up logging in test script pushes.
BUG=None
TEST=None
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@230475 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-23 18:19:58 +00:00
bulach@chromium.org 6a6d945cdd Relands Android perf tests: kill adbd on the device after running a test.
Third retry on crrev.com/226762.
Adds "wait-for-device".
There's some data indicating that adbd on the device sometimes
spontaneously restores its connection.
After running a test, let's kill adbd and wait for bit.

This is a speculative change to try to make the bots healthier.

BUG=268450

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@229931 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-21 21:55:58 +00:00
frankf@chromium.org c4d4caf35d [Android] Clean up build/android and tools/android
- Remove the place holder modules
- Remove unused device_status_monitor
- Remove unused fake_dns

R=bulach@chromium.org, craigdh@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@228558 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-14 23:27:05 +00:00
skyostil@google.com 6174ec41c1 android: Fix importing pexpect on Mac
We should use the version of pexpect from pylib to make sure we can
import it an all platforms where it is available.

BUG=304337
R=torne@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@227946 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-10 16:40:31 +00:00
bulach@chromium.org 160fe0fbc5 Revert: Android perf tests: kill adbd on the device after running a test.
There's some data indicating that adbd on the device sometimes
spontaneously restores its connection.
After running a test, let's kill adbd and forwarder and wait for bit.

Reverts crrev.com/227038: this is not helping.

BUG=
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@227278 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-07 15:47:24 +00:00
bulach@chromium.org 702ba611fc Relands: Android perf tests: kill adbd on the device after running a test.
There's some data indicating that adbd on the device sometimes
spontaneously restores its connection.
After running a test, let's kill adbd and forwarder and wait for bit.

This is a speculative change to try to make the bots healthier.
Relands crrev.com/226762: will also kill the forwarder.

BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@227038 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-04 18:14:27 +00:00
rmcilroy@chromium.org 599c573144 Revert 226762 "Android perf tests: kill adbd on the device after..."
This seems to make matters worse on sharded bots.  Possibly because
killing adbd on one device affects the host's adb connection with other devices.

> Android perf tests: kill adbd on the device after running a test.
> 
> There's some data indicating that adbd on the device sometimes
> spontaneously restores its connection.
> After running a test, let's kill adbd and wait for bit.
> 
> This is a speculative change to try to make the bots healthier.
> 
> BUG=
> 
> Review URL: https://codereview.chromium.org/25574002

TBR=bulach@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@226980 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-04 09:51:32 +00:00
bulach@chromium.org cbb86738d1 Android perf tests: kill adbd on the device after running a test.
There's some data indicating that adbd on the device sometimes
spontaneously restores its connection.
After running a test, let's kill adbd and wait for bit.

This is a speculative change to try to make the bots healthier.

BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@226762 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-03 15:24:36 +00:00
digit@chromium.org 9ea4fe32e0 Add new Android test runner command to handle linker tests.
This adds a new test runner command to run the content linker
tests on Android. This requires first the CL at
https://chromiumcodereview.appspot.com/23717023/
which defines a new build target named 'content_linker_test_apk'.

To launch the linker tests, simply do:

  ninja -C out/Debug content_linker_tests_apk
  build/android/test_runner.py linker

See test_case.py for details of what the test does.

BUG=287739
R=bulach@chromium.org, craigdh@chromium.org, frankf@chromium.org, yfriedman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@226739 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-03 11:56:38 +00:00
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
craigdh@chromium.org da6e3d16a5 [android] Do not rm test dependencies when doing a full directory push in PushIfNeeded.
BUG=None
TEST=None
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@224724 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-09-23 16:27:02 +00:00
craigdh@chromium.org 57827b801a [android] Log number of completely new files when pushing test dependencies to a device.
BUG=288964
TEST=None
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@224407 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-09-20 17:14:20 +00:00
craigdh@chromium.org 0f37631102 [android] Test scripts log the list of files changed on the device when pushing dependencies.
BUG=288964
TEST=None
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@223675 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-09-17 20:29:35 +00:00
bulach@chromium.org 68fbba6e0a Android: splits cache_control and perf_control.
Second step towards deprecating "perf_tests_helper.py"
towards more meaningful modules.
Also move thermal_throttle.py into perf/ and some
other minor cleanup.

BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@223606 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-09-17 13:52:42 +00:00
sievers@chromium.org 457197f883 Android: Don't restart/reboot on package install failure
In the scripts used by the test runners only restart the shell or
reboot the device if there was a timeout.
Otherwise print the error and abort.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@222466 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-09-11 04:09:56 +00:00
primiano@chromium.org 30eacbbc8e Telemetry: fix permission check when setting Android command line.
This is to fix a bug introduced by r221426 on the WebView telemetry bot.
The issue was related to the fact that ls -l can return no output if the
target folder exists but is empty.
This change makes the IsProtectedFile logic inside _SetCommandLineFile
more reliable, introducing the IsFileWritableOnDevice method in adb
commands.

BUG=284468
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@222349 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-09-10 21:36:16 +00:00
craigdh@chromium.org 436edf51e9 [android] Relands: Adds constants.GetBuildDirectory() and converts test scripts to use it.
BUG=260494
TEST=None
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@222313 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-09-10 18:29:03 +00:00