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

Issue 293193002: adb_profile_chrome: Add perf profiler (Closed)

Created:
6 years, 7 months ago by Sami
Modified:
6 years, 6 months ago
Reviewers:
Dominik Grewe, bulach
CC:
chromium-reviews, klundberg+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy-cc_chromium.org, vmiura
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274837

Patch Set 1 #

Patch Set 2 : Checkpoint. #

Patch Set 3 : Refactoring. #

Patch Set 4 : Merge perf profiles. #

Patch Set 5 : Run perf in system wide mode. #

Patch Set 6 : Allow just --perf for using regular 'cycles' sampling. #

Patch Set 7 : Rebased. #

Total comments: 6

Patch Set 8 : Made perf optional. Addressed Dominik's comments. #

Patch Set 9 : Implemented trace merging. #

Total comments: 16

Patch Set 10 : Review comments. #

Patch Set 11 : Remove unneeded entrypoint. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+345 lines, -68 lines) Patch
M build/android/chrome_profiler/main.py View 1 2 3 4 5 6 7 8 9 10 6 chunks +37 lines, -4 lines 0 comments Download
A build/android/chrome_profiler/perf_controller.py View 1 2 3 4 5 6 7 8 9 1 chunk +160 lines, -0 lines 0 comments Download
A + build/android/chrome_profiler/perf_controller_unittest.py View 1 2 3 4 5 6 7 2 chunks +13 lines, -11 lines 0 comments Download
M build/android/chrome_profiler/profiler.py View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -53 lines 0 comments Download
A build/android/chrome_profiler/trace_packager.py View 1 2 3 4 5 6 7 8 9 1 chunk +94 lines, -0 lines 0 comments Download
A build/android/chrome_profiler/trace_packager_unittest.py View 1 2 3 4 5 6 7 8 9 1 chunk +35 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Sami
6 years, 7 months ago (2014-05-27 19:33:56 UTC) #1
Dominik Grewe
Some comments below. https://codereview.chromium.org/293193002/diff/30005/build/android/chrome_profiler/main.py File build/android/chrome_profiler/main.py (right): https://codereview.chromium.org/293193002/diff/30005/build/android/chrome_profiler/main.py#newcode121 build/android/chrome_profiler/main.py:121: ' cycles by default. Use "list" ...
6 years, 6 months ago (2014-05-28 17:09:43 UTC) #2
Sami
Thanks Dominik, comments addressed. I still need to implement merging of chrome and perf traces ...
6 years, 6 months ago (2014-06-02 17:56:38 UTC) #3
Sami
Okay, now we can merge json traces into a single coherent structure that the trace ...
6 years, 6 months ago (2014-06-03 19:01:08 UTC) #4
bulach
lgtm, thanks sami! mostly nits, but a follow up suggestion below: https://codereview.chromium.org/293193002/diff/140001/build/android/chrome_profiler/main.py File build/android/chrome_profiler/main.py (right): ...
6 years, 6 months ago (2014-06-04 10:34:13 UTC) #5
Sami
Thanks Marcus, all addressed. Let me spin up another patch for the reorganization. https://codereview.chromium.org/293193002/diff/140001/build/android/chrome_profiler/main.py File ...
6 years, 6 months ago (2014-06-04 15:16:59 UTC) #6
Sami
The CQ bit was checked by skyostil@chromium.org
6 years, 6 months ago (2014-06-04 15:25:09 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/293193002/180001
6 years, 6 months ago (2014-06-04 15:26:23 UTC) #8
commit-bot: I haz the power
6 years, 6 months ago (2014-06-04 15:28:08 UTC) #9
Message was sent while issue was closed.
Change committed as 274837

Powered by Google App Engine
This is Rietveld 408576698