Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(318)

Unified Diff: build/android/pylib/local/device/local_device_perf_test_run.py

Issue 2596443004: [Android] Generate html file for test runner trace instead of json. (Closed)
Patch Set: agrieves comments Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/android/pylib/__init__.py ('k') | build/android/pylib/local/device/local_device_test_run.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/local/device/local_device_perf_test_run.py
diff --git a/build/android/pylib/local/device/local_device_perf_test_run.py b/build/android/pylib/local/device/local_device_perf_test_run.py
index afbd4e9c4dbffe81b93ea5ad464d7bd0e348c7e4..03f6ed74beb621abc84610159233d89293c7b1d7 100644
--- a/build/android/pylib/local/device/local_device_perf_test_run.py
+++ b/build/android/pylib/local/device/local_device_perf_test_run.py
@@ -425,7 +425,7 @@ class LocalDevicePerfTestRun(local_device_test_run.LocalDeviceTestRun):
# Affinitize the tests.
if self._test_instance.trace_output:
assert not trace_event.trace_is_enabled(), 'Tracing already running.'
- trace_event.trace_enable(self._test_instance.trace_output)
+ trace_event.trace_enable(self._test_instance.trace_output + '.json')
self._SplitTestsByAffinity()
if not self._test_buckets and not self._no_device_tests:
raise local_device_test_run.NoTestsError()
@@ -466,6 +466,9 @@ class LocalDevicePerfTestRun(local_device_test_run.LocalDeviceTestRun):
if self._test_instance.trace_output:
assert trace_event.trace_is_enabled(), 'Tracing not running.'
trace_event.trace_disable()
+ local_device_test_run.LocalDeviceTestRun._JsonToTrace(
+ self._test_instance.trace_output + '.json',
+ self._test_instance.trace_output)
return host_test_results + device_test_results
# override
« no previous file with comments | « build/android/pylib/__init__.py ('k') | build/android/pylib/local/device/local_device_test_run.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698