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

Issue 511653002: Add profiling_controller that manages profilers. (Closed)

Created:
6 years, 3 months ago by nednguyen
Modified:
6 years, 3 months ago
Reviewers:
tonyg, nduca
CC:
chromium-reviews, telemetry+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add profiling_controller that manages profilers. Remove StartProfiling & StopProfiling methods from browser.py. profiling_controller is owned by platform, so this will allow decoupling lifetime of profilers from browser. This cannot be achieved yet in this patch since we have some profilers whose lifetime dependent on the browser, e.g: v8, tracing... To do this, profilers' APIs should be modified for case browser_backend is optional if they are not dependent on the browsers (e.g: monsoon, tcp_dump...). For now, StartProfiling will explode if the number of running browsers is not 1. BUG= Committed: https://crrev.com/54ab6c560f9738070d152bdd5246a3e32ee459dd Cr-Commit-Position: refs/heads/master@{#293618}

Patch Set 1 #

Patch Set 2 : Update memory measurement #

Patch Set 3 : s/profilers_controller/profiling_controller #

Total comments: 6

Patch Set 4 : Rebase & address Tony's comments #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -48 lines) Patch
M tools/perf/record_android_profile.py View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M tools/telemetry/telemetry/core/browser.py View 5 chunks +0 lines, -42 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/__init__.py View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/platform_backend.py View 1 2 4 chunks +11 lines, -2 lines 0 comments Download
A tools/telemetry/telemetry/core/platform/profiling_controller.py View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/core/platform/profiling_controller_backend.py View 1 2 3 1 chunk +53 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/page/page_runner.py View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (6 generated)
nednguyen
nednguyen@google.com changed reviewers: + tonyg@chromium.org
6 years, 3 months ago (2014-08-26 23:12:29 UTC) #1
tonyg
https://codereview.chromium.org/511653002/diff/40001/tools/perf/measurements/loading_profile.py File tools/perf/measurements/loading_profile.py (right): https://codereview.chromium.org/511653002/diff/40001/tools/perf/measurements/loading_profile.py#newcode37 tools/perf/measurements/loading_profile.py:37: profile_files = tab.browser.StopProfiling() How does this work? Note that ...
6 years, 3 months ago (2014-09-04 17:10:19 UTC) #3
nednguyen
https://codereview.chromium.org/511653002/diff/40001/tools/perf/measurements/loading_profile.py File tools/perf/measurements/loading_profile.py (right): https://codereview.chromium.org/511653002/diff/40001/tools/perf/measurements/loading_profile.py#newcode37 tools/perf/measurements/loading_profile.py:37: profile_files = tab.browser.StopProfiling() On 2014/09/04 17:10:19, tonyg wrote: > ...
6 years, 3 months ago (2014-09-04 17:31:46 UTC) #4
nednguyen
On 2014/09/04 17:31:46, nednguyen wrote: > https://codereview.chromium.org/511653002/diff/40001/tools/perf/measurements/loading_profile.py > File tools/perf/measurements/loading_profile.py (right): > > https://codereview.chromium.org/511653002/diff/40001/tools/perf/measurements/loading_profile.py#newcode37 > ...
6 years, 3 months ago (2014-09-05 17:08:34 UTC) #5
nednguyen
https://codereview.chromium.org/511653002/diff/40001/tools/telemetry/telemetry/core/platform/profiling_controller.py File tools/telemetry/telemetry/core/platform/profiling_controller.py (right): https://codereview.chromium.org/511653002/diff/40001/tools/telemetry/telemetry/core/platform/profiling_controller.py#newcode10 tools/telemetry/telemetry/core/platform/profiling_controller.py:10: def StartProfiling(self, profiler_name, base_output_file): On 2014/09/04 17:10:19, tonyg wrote: ...
6 years, 3 months ago (2014-09-05 17:08:43 UTC) #6
tonyg
lgtm
6 years, 3 months ago (2014-09-05 17:13:39 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nednguyen@google.com/511653002/80001
6 years, 3 months ago (2014-09-05 17:20:09 UTC) #9
commit-bot: I haz the power
Exceeded time limit waiting for builds to trigger.
6 years, 3 months ago (2014-09-05 23:37:33 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nednguyen@google.com/511653002/80001
6 years, 3 months ago (2014-09-06 00:00:09 UTC) #13
commit-bot: I haz the power
Exceeded time limit waiting for builds to trigger.
6 years, 3 months ago (2014-09-06 06:02:57 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nednguyen@google.com/511653002/80001
6 years, 3 months ago (2014-09-06 14:34:26 UTC) #17
commit-bot: I haz the power
Committed patchset #5 (id:80001) as bc2b2dd0bfa664b9874e71effbede3dded57e469
6 years, 3 months ago (2014-09-06 14:35:51 UTC) #18
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:42:38 UTC) #19
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/54ab6c560f9738070d152bdd5246a3e32ee459dd
Cr-Commit-Position: refs/heads/master@{#293618}

Powered by Google App Engine
This is Rietveld 408576698