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

Issue 21682002: Expose GPU information to Telemetry. (Closed)

Created:
7 years, 4 months ago by Ken Russell (switch to Gerrit)
Modified:
7 years, 4 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, jam, apatrick_chromium, joi+watch-content_chromium.org, chrome-speed-team+watch_google.com, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, telemetry+watch_chromium.org, bajones, yurys
Visibility:
Public.

Description

Expose GPU information to Telemetry. The GPU on the system must be known to Telemetry in order for the test expectations to be applied properly. Added SystemInfo domain to the DevTools protocol and GetGPUInfo method to Telemetry's Browser class. Added GPUInfo and GPUDevice classes to telemetry.core. Wrote and ran tests for all new code. BUG=245741 R=dtu@chromium.org,zmo@chromium.org,pfeldman@chromium.org,nduca@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=217784

Patch Set 1 #

Patch Set 2 : Moved access check to browser process. #

Total comments: 6

Patch Set 3 : Restructured as browser API on nduca's feedback. #

Patch Set 4 : Minor cleanups. #

Patch Set 5 : Removed more unnecessary includes. #

Total comments: 10

Patch Set 6 : #

Patch Set 7 : Addressed pfeldman's and nduca's review feedback. Rebased. Retested. #

Total comments: 6

Patch Set 8 : Addressed pfeldman's feedback. Added SystemInfo, simplified, fixed bugs in protocol implementation.… #

Total comments: 9

Patch Set 9 : Explicitly add required fields to DevTools result. Renamed fields. Refactored common backend code. #

Patch Set 10 : Refactored more code into WebSocketBrowserConnection on nduca's request. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+929 lines, -43 lines) Patch
A content/browser/devtools/browser_protocol.json View 1 2 3 4 5 6 7 8 1 chunk +48 lines, -0 lines 0 comments Download
M content/browser/devtools/devtools_http_handler_impl.cc View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/devtools/devtools_protocol_constants.h View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -0 lines 0 comments Download
M content/browser/devtools/devtools_protocol_constants.cc View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -0 lines 0 comments Download
A content/browser/devtools/devtools_system_info_handler.h View 1 2 3 4 5 6 7 1 chunk +28 lines, -0 lines 0 comments Download
A content/browser/devtools/devtools_system_info_handler.cc View 1 2 3 4 5 6 7 8 1 chunk +123 lines, -0 lines 1 comment Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/config/gpu_info.h View 1 2 3 4 5 6 7 8 1 chunk +35 lines, -0 lines 0 comments Download
M gpu/config/gpu_info.cc View 1 2 3 4 5 6 7 2 chunks +99 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/browser_backend.py View 1 2 3 4 5 6 7 2 chunks +7 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/chrome/chrome_browser_backend.py View 1 2 3 4 5 6 7 8 3 chunks +15 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/browser.py View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/browser_unittest.py View 1 2 3 4 5 6 7 8 2 chunks +22 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/core/chrome/camel_case_converter.py View 1 2 3 4 5 1 chunk +40 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/core/chrome/camel_case_converter_unittest.py View 1 2 3 4 5 1 chunk +34 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/core/chrome/system_info_backend.py View 1 2 3 4 5 6 7 8 9 1 chunk +23 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/chrome/tracing_backend.py View 1 2 3 4 5 6 7 8 9 6 chunks +14 lines, -43 lines 0 comments Download
A tools/telemetry/telemetry/core/chrome/websocket_browser_connection.py View 1 2 3 4 5 6 7 8 9 1 chunk +59 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/core/gpu_device.py View 1 2 3 4 5 6 7 1 chunk +66 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/core/gpu_device_unittest.py View 1 2 1 chunk +44 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/core/gpu_info.py View 1 2 3 4 5 6 7 8 1 chunk +50 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/core/gpu_info_unittest.py View 1 2 3 4 5 6 7 8 1 chunk +82 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/core/system_info.py View 1 2 3 4 5 6 7 8 1 chunk +40 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/core/system_info_unittest.py View 1 2 3 4 5 6 7 8 1 chunk +66 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
Ken Russell (switch to Gerrit)
Please review. dtu => tools/telemetry (and everything) jochen => content/browser/renderer_host, content/renderer palmer => content/common/gpu/gpu_messages.h IPC ...
7 years, 4 months ago (2013-08-02 00:55:11 UTC) #1
Zhenyao Mo
On 2013/08/02 00:55:11, Ken Russell wrote: > Please review. > > dtu => tools/telemetry (and ...
7 years, 4 months ago (2013-08-02 01:07:47 UTC) #2
dtu
Looks great! Only nits. https://codereview.chromium.org/21682002/diff/4001/tools/telemetry/telemetry/core/gpu_device.py File tools/telemetry/telemetry/core/gpu_device.py (right): https://codereview.chromium.org/21682002/diff/4001/tools/telemetry/telemetry/core/gpu_device.py#newcode41 tools/telemetry/telemetry/core/gpu_device.py:41: return GPUDevice(attrs['vendor_id'], attrs['device_id'], nit: cls ...
7 years, 4 months ago (2013-08-02 01:35:18 UTC) #3
dtu
lgtm Looks great! Only nits.
7 years, 4 months ago (2013-08-02 01:35:22 UTC) #4
jochen (gone - plz use gerrit)
lgtm
7 years, 4 months ago (2013-08-02 07:39:35 UTC) #5
palmer
LGTM https://codereview.chromium.org/21682002/diff/4001/content/browser/renderer_host/gpu_message_filter.cc File content/browser/renderer_host/gpu_message_filter.cc (right): https://codereview.chromium.org/21682002/diff/4001/content/browser/renderer_host/gpu_message_filter.cc#newcode93 content/browser/renderer_host/gpu_message_filter.cc:93: IPC_MESSAGE_HANDLER(GpuHostMsg_GetGPUInfo, Nit: This could fit on one line?
7 years, 4 months ago (2013-08-02 20:26:36 UTC) #6
nduca
woah this needs more work! more comments to follow once i've figured out how to ...
7 years, 4 months ago (2013-08-04 20:12:15 UTC) #7
nduca
So the core issue is that any new API area added to telemetry/core must first ...
7 years, 4 months ago (2013-08-04 20:32:06 UTC) #8
nduca
+tonyg for systeminfo angle
7 years, 4 months ago (2013-08-06 22:14:12 UTC) #9
Ken Russell (switch to Gerrit)
Restructured as API on Telemetry's Browser object on feedback from nduca. Please re-review. pfeldman: please ...
7 years, 4 months ago (2013-08-07 01:42:12 UTC) #10
pfeldman
https://codereview.chromium.org/21682002/diff/26001/content/browser/devtools/devtools_system_info_handler.cc File content/browser/devtools/devtools_system_info_handler.cc (right): https://codereview.chromium.org/21682002/diff/26001/content/browser/devtools/devtools_system_info_handler.cc#newcode18 content/browser/devtools/devtools_system_info_handler.cc:18: const char kGPU[] = "gpu"; How is this information ...
7 years, 4 months ago (2013-08-07 13:01:58 UTC) #11
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/21682002/diff/26001/content/browser/devtools/devtools_system_info_handler.cc File content/browser/devtools/devtools_system_info_handler.cc (right): https://codereview.chromium.org/21682002/diff/26001/content/browser/devtools/devtools_system_info_handler.cc#newcode18 content/browser/devtools/devtools_system_info_handler.cc:18: const char kGPU[] = "gpu"; On 2013/08/07 13:01:58, pfeldman ...
7 years, 4 months ago (2013-08-08 02:42:36 UTC) #12
nduca
> The CL description describes how it's going to be used. Currently I have no ...
7 years, 4 months ago (2013-08-08 02:45:17 UTC) #13
Ken Russell (switch to Gerrit)
A separate Blink CL has been uploaded to address the concern of documenting the addition ...
7 years, 4 months ago (2013-08-14 00:54:40 UTC) #14
Ken Russell (switch to Gerrit)
pfeldman, yurys: please review this during your work day today. Thank you.
7 years, 4 months ago (2013-08-14 07:27:23 UTC) #15
pfeldman
https://codereview.chromium.org/21682002/diff/49001/content/browser/devtools/devtools_system_info_handler.cc File content/browser/devtools/devtools_system_info_handler.cc (right): https://codereview.chromium.org/21682002/diff/49001/content/browser/devtools/devtools_system_info_handler.cc#newcode23 content/browser/devtools/devtools_system_info_handler.cc:23: const char kSecondaryGPUs[] = "secondaryGpus"; I don't see neither ...
7 years, 4 months ago (2013-08-14 09:18:19 UTC) #16
Ken Russell (switch to Gerrit)
Per pfeldman's feedback, added SystemInfo class to Telemetry and moved machine_model and gpu (GPUInfo object) ...
7 years, 4 months ago (2013-08-14 19:33:15 UTC) #17
nduca
telemetry part of this looks really solid. nearly lg but nit around the backend object... ...
7 years, 4 months ago (2013-08-14 19:53:36 UTC) #18
pfeldman
https://codereview.chromium.org/21682002/diff/58001/content/browser/devtools/devtools_system_info_handler.cc File content/browser/devtools/devtools_system_info_handler.cc (right): https://codereview.chromium.org/21682002/diff/58001/content/browser/devtools/devtools_system_info_handler.cc#newcode27 content/browser/devtools/devtools_system_info_handler.cc:27: , root_(dictionary) Use trailing comma as per style guidelines. ...
7 years, 4 months ago (2013-08-14 19:59:02 UTC) #19
pfeldman
https://codereview.chromium.org/21682002/diff/58001/content/browser/devtools/devtools_system_info_handler.cc File content/browser/devtools/devtools_system_info_handler.cc (right): https://codereview.chromium.org/21682002/diff/58001/content/browser/devtools/devtools_system_info_handler.cc#newcode39 content/browser/devtools/devtools_system_info_handler.cc:39: current_->SetString(name, value); Previous iteration was properly filling in kDeviceString ...
7 years, 4 months ago (2013-08-14 20:01:41 UTC) #20
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/21682002/diff/58001/tools/telemetry/telemetry/core/chrome/system_info_backend.py File tools/telemetry/telemetry/core/chrome/system_info_backend.py (right): https://codereview.chromium.org/21682002/diff/58001/tools/telemetry/telemetry/core/chrome/system_info_backend.py#newcode15 tools/telemetry/telemetry/core/chrome/system_info_backend.py:15: class SystemInfoBackend(object): On 2013/08/14 19:53:36, nduca wrote: > hmm ...
7 years, 4 months ago (2013-08-14 22:47:56 UTC) #21
Ken Russell (switch to Gerrit)
Moved browser_protocol.json into this CL. Made enumeration explicit in DevToolsSystemInfoHandler. Renamed fields. Refactored common code ...
7 years, 4 months ago (2013-08-14 23:18:07 UTC) #22
Ken Russell (switch to Gerrit)
piman: please review content_browser.gypi change.
7 years, 4 months ago (2013-08-14 23:22:19 UTC) #23
nduca
telemetry/ lgtm. could you perhaps make the connection be a member of both backends instead ...
7 years, 4 months ago (2013-08-14 23:40:42 UTC) #24
Ken Russell (switch to Gerrit)
Refactored more code into WebSocketBrowserConnection and made it a helper object rather than a base ...
7 years, 4 months ago (2013-08-15 01:35:10 UTC) #25
piman
lgtm
7 years, 4 months ago (2013-08-15 02:50:21 UTC) #26
pfeldman
devtools lgtm https://codereview.chromium.org/21682002/diff/72001/content/browser/devtools/devtools_system_info_handler.cc File content/browser/devtools/devtools_system_info_handler.cc (right): https://codereview.chromium.org/21682002/diff/72001/content/browser/devtools/devtools_system_info_handler.cc#newcode107 content/browser/devtools/devtools_system_info_handler.cc:107: for (size_t ii = 0; ii < ...
7 years, 4 months ago (2013-08-15 05:49:46 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kbr@chromium.org/21682002/72001
7 years, 4 months ago (2013-08-15 09:20:39 UTC) #28
commit-bot: I haz the power
7 years, 4 months ago (2013-08-15 11:37:47 UTC) #29
Message was sent while issue was closed.
Change committed as 217784

Powered by Google App Engine
This is Rietveld 408576698