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

Issue 25686006: android: Add systrace and combined trace support to adb_profile_chrome (Closed)

Created:
7 years, 2 months ago by Sami
Modified:
7 years, 2 months ago
Reviewers:
bulach, tonyg
CC:
chromium-reviews, craigdh+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy-cc_chromium.org, klundberg+watch_chromium.org, frankf+watch_chromium.org
Visibility:
Public.

Description

android: Add systrace and combined trace support to adb_profile_chrome 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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=228669

Patch Set 1 #

Patch Set 2 : Tweaks. #

Patch Set 3 : Use --async_{start,dump,end} with atrace. #

Patch Set 4 : Refactored. Support non-default adb device. #

Total comments: 3

Patch Set 5 : Add continuous mode. No more subprocess. #

Patch Set 6 : s/Download/Pull/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+262 lines, -114 lines) Patch
M build/android/adb_profile_chrome.py View 1 2 3 4 5 4 chunks +262 lines, -114 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Sami
7 years, 2 months ago (2013-10-03 11:25:33 UTC) #1
bulach
lgtm, just one question about the "continuous" below.. thanks! https://codereview.chromium.org/25686006/diff/8001/build/android/adb_profile_chrome.py File build/android/adb_profile_chrome.py (right): https://codereview.chromium.org/25686006/diff/8001/build/android/adb_profile_chrome.py#newcode55 build/android/adb_profile_chrome.py:55: ...
7 years, 2 months ago (2013-10-04 14:30:11 UTC) #2
Sami
On 2013/10/04 14:30:11, bulach wrote: > there's a pylib/cmd_helper.py, or even better, just use > ...
7 years, 2 months ago (2013-10-04 14:38:24 UTC) #3
Sami
Hi Tony, I've moved the meat of https://codereview.chromium.org/25883003/ here like you and Marcus suggestes and ...
7 years, 2 months ago (2013-10-10 18:11:36 UTC) #4
Sami
On 2013/10/04 14:30:11, bulach wrote: > lgtm, just one question about the "continuous" below.. thanks! ...
7 years, 2 months ago (2013-10-15 09:29:24 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/25686006/16001
7 years, 2 months ago (2013-10-15 09:31:21 UTC) #6
commit-bot: I haz the power
7 years, 2 months ago (2013-10-15 12:10:52 UTC) #7
Message was sent while issue was closed.
Change committed as 228669

Powered by Google App Engine
This is Rietveld 408576698