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

Issue 436873003: Make telemetry platform a singleton (Closed)

Created:
6 years, 4 months ago by nduca
Modified:
6 years, 4 months ago
Reviewers:
nednguyen, dtu, tonyg
CC:
chromium-reviews, telemetry+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Make telemetry platform a singleton Previously, platform backends were singletons [per platform] but the platform object itself was created and destroyed by the browser. Moreover, the current OS backend was publicly accessible. This patch tightens up the lifecycle of platforms, making the host platform an explicit singleton, and target platforms singletons owned by their finder. And, the platform backend is no longer exposed. Sadly, three corner cases exist: a memory test case and the actual desktop-based browser finders. R=tonyg BUG=356763 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287739

Patch Set 1 #

Total comments: 5

Patch Set 2 : Cleaned up #

Patch Set 3 : Wow the video capture code is hacky #

Patch Set 4 : With yet more fixes for damn video test #

Patch Set 5 : rebase #

Patch Set 6 : rebase_again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -72 lines) Patch
M tools/telemetry/telemetry/core/backends/chrome/android_browser_finder.py View 1 2 3 4 5 2 chunks +9 lines, -4 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/chrome/cros_browser_finder.py View 1 2 chunks +9 lines, -6 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/chrome/desktop_browser_finder.py View 1 3 chunks +11 lines, -4 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/webdriver/webdriver_desktop_browser_finder.py View 1 2 chunks +11 lines, -5 lines 0 comments Download
M tools/telemetry/telemetry/core/browser.py View 1 2 3 4 5 3 chunks +6 lines, -5 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/__init__.py View 1 2 chunks +27 lines, -2 lines 0 comments Download
D tools/telemetry/telemetry/core/platform/factory.py View 1 chunk +0 lines, -22 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/mac_platform_backend_unittest.py View 1 2 chunks +4 lines, -2 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/platform_backend.py View 1 1 chunk +11 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/platform_backend_unittest.py View 1 2 3 4 5 1 chunk +6 lines, -6 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/posix_platform_backend_unittest.py View 1 2 chunks +5 lines, -5 lines 0 comments Download
M tools/telemetry/telemetry/core/possible_browser.py View 1 3 chunks +5 lines, -3 lines 0 comments Download
M tools/telemetry/telemetry/core/tab_unittest.py View 1 2 3 2 chunks +14 lines, -8 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
nduca
wip but ptal in case you've got a moment to sanity check the approach. it ...
6 years, 4 months ago (2014-08-02 04:21:05 UTC) #1
tonyg
This patch is trying to do a lot at once. Some parts I think are ...
6 years, 4 months ago (2014-08-02 15:58:19 UTC) #2
nduca
I've updated this patch so its a little clearer. It does less, but has two ...
6 years, 4 months ago (2014-08-03 08:27:24 UTC) #3
nduca
friendly ping
6 years, 4 months ago (2014-08-04 22:30:33 UTC) #4
nduca
... in search of reviewer. Being aggressive because I'm getting stuff piled up behind this.
6 years, 4 months ago (2014-08-05 04:03:19 UTC) #5
tonyg
lgtm Love it. Thanks for cleaning this up.
6 years, 4 months ago (2014-08-05 15:45:58 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nduca@chromium.org/436873003/60001
6 years, 4 months ago (2014-08-05 15:46:56 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-05 19:22:40 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-05 19:37:20 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/42742)
6 years, 4 months ago (2014-08-05 19:37:21 UTC) #10
tonyg
The CQ bit was checked by tonyg@chromium.org
6 years, 4 months ago (2014-08-05 19:39:47 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nduca@chromium.org/436873003/60001
6 years, 4 months ago (2014-08-05 19:40:58 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-05 19:57:32 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-05 21:02:15 UTC) #14
commit-bot: I haz the power
Failed to apply patch for tools/telemetry/telemetry/core/platform/platform_backend_unittest.py: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 4 months ago (2014-08-05 21:02:16 UTC) #15
nduca
The CQ bit was checked by nduca@chromium.org
6 years, 4 months ago (2014-08-05 21:56:51 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nduca@chromium.org/436873003/80001
6 years, 4 months ago (2014-08-05 21:58:38 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-05 23:02:51 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-05 23:05:35 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/48488) mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/37740) android_aosp ...
6 years, 4 months ago (2014-08-05 23:05:36 UTC) #20
nduca
The CQ bit was checked by nduca@chromium.org
6 years, 4 months ago (2014-08-06 02:56:57 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nduca@chromium.org/436873003/80001
6 years, 4 months ago (2014-08-06 03:00:29 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-06 03:23:45 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-06 03:26:06 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/37822) linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_swarming/builds/1481) ios_dbg_simulator ...
6 years, 4 months ago (2014-08-06 03:26:07 UTC) #25
nduca
The CQ bit was checked by nduca@chromium.org
6 years, 4 months ago (2014-08-06 04:40:00 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nduca@chromium.org/436873003/100001
6 years, 4 months ago (2014-08-06 04:41:25 UTC) #27
commit-bot: I haz the power
6 years, 4 months ago (2014-08-06 09:08:52 UTC) #28
Message was sent while issue was closed.
Change committed as 287739

Powered by Google App Engine
This is Rietveld 408576698