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

Issue 2297403003: Use Systrace tracing controller in profile_chrome (Closed)

Created:
4 years, 3 months ago by washingtonp
Modified:
4 years, 3 months ago
Reviewers:
chriscraik, Zhen Wang, Chris Craik, ChrisCraik, Sami
CC:
catapult-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/external/github.com/catapult-project/catapult.git@master
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

Use Systrace tracing controller in profile_chrome In the continuing effort to merge profile_chrome and Systrace, profiler.py in profile_chrome needs to directly use the tracing controller in Systrace. This involves refactoring Systrace's tracing controller to handle various types of tracing categories (Chrome + Perf in addition to its current atrace categories). Note: This CL finishes laying the groundwork for moving the profile_chrome agents to Systrace. After this CL, 5 parallel CLs will go out; each one will be an easy move of one of the 5 profile_chrome agents into Systrace. BUG=catapult:#2662 TBR=ccraik@google.com Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/32f19b159dd6a951b71d1825271fc6856c2b429e

Patch Set 1 #

Total comments: 14

Patch Set 2 : Small refactors to creating agents and user output #

Patch Set 3 : Dynamically pass the agent list to the profile_chrome profiler #

Total comments: 10

Patch Set 4 : Added property method for tracing controller's child agents #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+238 lines, -178 lines) Patch
M systrace/bin/adb_profile_chrome_startup View 1 2 3 3 chunks +20 lines, -18 lines 0 comments Download
M systrace/profile_chrome/atrace_tracing_agent.py View 1 4 chunks +13 lines, -2 lines 0 comments Download
M systrace/profile_chrome/atrace_tracing_agent_unittest.py View 1 chunk +2 lines, -1 line 0 comments Download
M systrace/profile_chrome/chrome_startup_tracing_agent.py View 1 2 4 chunks +16 lines, -3 lines 0 comments Download
M systrace/profile_chrome/chrome_tracing_agent.py View 1 6 chunks +16 lines, -2 lines 0 comments Download
M systrace/profile_chrome/chrome_tracing_agent_unittest.py View 1 chunk +2 lines, -3 lines 0 comments Download
M systrace/profile_chrome/ddms_tracing_agent.py View 1 3 chunks +13 lines, -3 lines 0 comments Download
M systrace/profile_chrome/flags.py View 1 chunk +3 lines, -2 lines 0 comments Download
M systrace/profile_chrome/main.py View 1 2 3 6 chunks +29 lines, -38 lines 0 comments Download
M systrace/profile_chrome/perf_tracing_agent.py View 1 4 chunks +11 lines, -2 lines 0 comments Download
M systrace/profile_chrome/perf_tracing_agent_unittest.py View 1 chunk +2 lines, -1 line 0 comments Download
M systrace/profile_chrome/profiler.py View 1 2 3 3 chunks +32 lines, -42 lines 0 comments Download
M systrace/profile_chrome/profiler_unittest.py View 1 chunk +4 lines, -2 lines 0 comments Download
M systrace/systrace/systrace_runner.py View 4 chunks +4 lines, -56 lines 0 comments Download
M systrace/systrace/tracing_agents/battor_trace_agent.py View 1 1 chunk +2 lines, -2 lines 0 comments Download
M systrace/systrace/tracing_agents/ftrace_agent.py View 1 1 chunk +1 line, -1 line 0 comments Download
M systrace/systrace/tracing_controller.py View 1 2 3 3 chunks +68 lines, -0 lines 1 comment Download

Messages

Total messages: 27 (10 generated)
washingtonp
ptal (This CL finishes laying the groundwork for moving the profile_chrome agents to Systrace. After ...
4 years, 3 months ago (2016-09-01 01:52:34 UTC) #3
Sami
Overall looks good. Couple of comments below. https://codereview.chromium.org/2297403003/diff/1/systrace/bin/adb_profile_chrome_startup File systrace/bin/adb_profile_chrome_startup (right): https://codereview.chromium.org/2297403003/diff/1/systrace/bin/adb_profile_chrome_startup#newcode74 systrace/bin/adb_profile_chrome_startup:74: options.chrome_startup = ...
4 years, 3 months ago (2016-09-01 12:16:00 UTC) #4
Chris Craik
https://codereview.chromium.org/2297403003/diff/1/systrace/systrace/tracing_controller.py File systrace/systrace/tracing_controller.py (right): https://codereview.chromium.org/2297403003/diff/1/systrace/systrace/tracing_controller.py#newcode218 systrace/systrace/tracing_controller.py:218: return ' + '.join(map(str, self.child_agents)) should this sort the ...
4 years, 3 months ago (2016-09-01 17:24:05 UTC) #5
washingtonp
ptal https://codereview.chromium.org/2297403003/diff/1/systrace/bin/adb_profile_chrome_startup File systrace/bin/adb_profile_chrome_startup (right): https://codereview.chromium.org/2297403003/diff/1/systrace/bin/adb_profile_chrome_startup#newcode74 systrace/bin/adb_profile_chrome_startup:74: options.chrome_startup = True On 2016/09/01 12:15:59, Sami wrote: ...
4 years, 3 months ago (2016-09-01 17:44:41 UTC) #6
Sami
https://codereview.chromium.org/2297403003/diff/1/systrace/bin/adb_profile_chrome_startup File systrace/bin/adb_profile_chrome_startup (right): https://codereview.chromium.org/2297403003/diff/1/systrace/bin/adb_profile_chrome_startup#newcode74 systrace/bin/adb_profile_chrome_startup:74: options.chrome_startup = True On 2016/09/01 17:44:41, washingtonp wrote: > ...
4 years, 3 months ago (2016-09-02 12:57:43 UTC) #7
washingtonp
ptal https://codereview.chromium.org/2297403003/diff/1/systrace/bin/adb_profile_chrome_startup File systrace/bin/adb_profile_chrome_startup (right): https://codereview.chromium.org/2297403003/diff/1/systrace/bin/adb_profile_chrome_startup#newcode74 systrace/bin/adb_profile_chrome_startup:74: options.chrome_startup = True On 2016/09/02 12:57:42, Sami wrote: ...
4 years, 3 months ago (2016-09-02 20:10:27 UTC) #8
Sami
lgtm, looks much cleaner this way, thanks.
4 years, 3 months ago (2016-09-05 11:05:29 UTC) #9
Zhen Wang
https://codereview.chromium.org/2297403003/diff/40001/systrace/bin/adb_profile_chrome_startup File systrace/bin/adb_profile_chrome_startup (right): https://codereview.chromium.org/2297403003/diff/40001/systrace/bin/adb_profile_chrome_startup#newcode29 systrace/bin/adb_profile_chrome_startup:29: CHROME_STARTUP_MODULES = [atrace_tracing_agent, This should be private if it ...
4 years, 3 months ago (2016-09-07 16:37:11 UTC) #10
washingtonp
ptal https://codereview.chromium.org/2297403003/diff/40001/systrace/bin/adb_profile_chrome_startup File systrace/bin/adb_profile_chrome_startup (right): https://codereview.chromium.org/2297403003/diff/40001/systrace/bin/adb_profile_chrome_startup#newcode29 systrace/bin/adb_profile_chrome_startup:29: CHROME_STARTUP_MODULES = [atrace_tracing_agent, On 2016/09/07 16:37:11, Zhen Wang ...
4 years, 3 months ago (2016-09-07 18:36:08 UTC) #11
Zhen Wang
lgtm with nit https://codereview.chromium.org/2297403003/diff/60001/systrace/systrace/tracing_controller.py File systrace/systrace/tracing_controller.py (right): https://codereview.chromium.org/2297403003/diff/60001/systrace/systrace/tracing_controller.py#newcode115 systrace/systrace/tracing_controller.py:115: def get_child_agents(self): s/get_child_agents/child_agents/
4 years, 3 months ago (2016-09-07 21:05:09 UTC) #12
washingtonp
@ccraik: ptal when you get the chance
4 years, 3 months ago (2016-09-09 17:27:52 UTC) #13
ChrisCraik
LGTM (not sure if this will work - don't have access to work account right ...
4 years, 3 months ago (2016-09-11 04:40:40 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2297403003/60001
4 years, 3 months ago (2016-09-11 18:24:32 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: Catapult Presubmit on master.tryserver.client.catapult (JOB_FAILED, https://build.chromium.org/p/tryserver.client.catapult/builders/Catapult%20Presubmit/builds/4264)
4 years, 3 months ago (2016-09-11 18:44:18 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2297403003/60001
4 years, 3 months ago (2016-09-11 21:24:16 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/32f19b159dd6a951b71d1825271fc6856c2b429e
4 years, 3 months ago (2016-09-11 21:25:35 UTC) #26
Chris Craik
4 years, 3 months ago (2016-09-12 17:10:13 UTC) #27
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698