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

Issue 2988823002: DeviceInfo into GenericSets (Closed)

Created:
3 years, 5 months ago by phsilva
Modified:
3 years, 4 months ago
CC:
catapult-reviews_chromium.org, perf-dashboard-reviews_chromium.org, tracing-review_chromium.org
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

DeviceInfo into GenericSets This is part of the effort to move some of our diagnostics into GenericSet diagnostics rather than being their own type when appropriate. This CL converts the DeviceInfo diagnostic class into a few Generic Sets: one each for the fields of OS Name, OS Version, Architecture, Available Memory, GPU Info, and Chrome version. The same removal process has been done for MergedDeviceInfo, since that is not necessary anymore. Among other things, this CL: * Removes the DeviceInfo Diagnostic class from both Python and JS implementations. * Removes DeviceInfo and MergedDeviceInfo from all_diagnostics. * Changes diagnostic instantiation in add_device_info to use GenericSets and HistogramSet's AddSharedDiagnostic, replacing DeviceInfo and using Vinn, respectively. * Removes DeviceInfo from being one of the SparseDiagnostics type. * Removes UI implementations in Tracing for DeviceInfo and MergedDeviceInfo. * Remove DeviceInfo from add_histogram and respective tests. * Removes documentation regarding DeviceInfo. What has not been addressed: * We are still missing SparseDiagnostics picking diagnostics by name rather than by type. To be done in a separate bug. * Documentation on how the new GenericSet diagnostics work. Also registered in a separate bug. BUG=catapult:#3738,catapult:#3507 Review-Url: https://codereview.chromium.org/2988823002 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/21507ebaa1459e80544a73e0939d0a665b9d90f6

Patch Set 1 #

Total comments: 3

Patch Set 2 : Rebase and fixes #

Total comments: 1

Patch Set 3 : Remove how-to-write-metrics-device image #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -622 lines) Patch
M dashboard/dashboard/add_histograms.py View 1 1 chunk +3 lines, -2 lines 0 comments Download
M dashboard/dashboard/add_histograms_test.py View 1 4 chunks +25 lines, -10 lines 0 comments Download
M docs/histogram-set-json-format.md View 2 chunks +0 lines, -18 lines 0 comments Download
M docs/how-to-write-metrics.md View 1 chunk +0 lines, -9 lines 0 comments Download
D docs/images/how-to-write-metrics-device.png View 1 2 Binary file 0 comments Download
M tracing/trace_viewer.gypi View 1 4 chunks +0 lines, -4 lines 0 comments Download
M tracing/tracing/value/add_device_info.py View 1 chunk +24 lines, -15 lines 0 comments Download
M tracing/tracing/value/diagnostics/all_diagnostics.html View 1 chunk +0 lines, -2 lines 0 comments Download
D tracing/tracing/value/diagnostics/device_info.html View 1 chunk +0 lines, -92 lines 0 comments Download
D tracing/tracing/value/diagnostics/merged_device_info.html View 1 chunk +0 lines, -116 lines 0 comments Download
D tracing/tracing/value/diagnostics/merged_device_info_test.html View 1 chunk +0 lines, -50 lines 0 comments Download
M tracing/tracing/value/diagnostics/reserved_infos.py View 1 chunk +0 lines, -1 line 0 comments Download
M tracing/tracing/value/diagnostics/reserved_names.html View 1 chunk +0 lines, -1 line 0 comments Download
M tracing/tracing/value/histogram.py View 1 2 chunks +0 lines, -98 lines 0 comments Download
M tracing/tracing/value/histogram_unittest.py View 1 chunk +0 lines, -58 lines 0 comments Download
D tracing/tracing/value/ui/device_info_span.html View 1 chunk +0 lines, -77 lines 0 comments Download
M tracing/tracing/value/ui/diagnostic_span.html View 1 chunk +0 lines, -2 lines 0 comments Download
D tracing/tracing/value/ui/merged_device_info_span.html View 1 chunk +0 lines, -67 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 19 (8 generated)
phsilva
Hi all, Here's the CL for making DeviceInfo into GenericSet diagnostics. I've added an overall ...
3 years, 5 months ago (2017-07-25 21:15:40 UTC) #2
benjhayden
The CL description mentions owners and bug components. Cruft? https://codereview.chromium.org/2988823002/diff/1/tracing/tracing/value/add_device_info.py File tracing/tracing/value/add_device_info.py (right): https://codereview.chromium.org/2988823002/diff/1/tracing/tracing/value/add_device_info.py#newcode31 tracing/tracing/value/add_device_info.py:31: ...
3 years, 5 months ago (2017-07-26 05:21:18 UTC) #3
benjhayden
The CL description mentions owners and bug components. Cruft?
3 years, 5 months ago (2017-07-26 05:21:21 UTC) #4
benjhayden
Other than those nits, lgtm, thank you so much for taking care of this! https://codereview.chromium.org/2988823002/diff/20001/docs/how-to-write-metrics.md ...
3 years, 5 months ago (2017-07-26 05:24:14 UTC) #5
shatch
dashboard lgtm
3 years, 4 months ago (2017-07-26 12:44:06 UTC) #6
phsilva
On 2017/07/26 at 05:21:21, benjhayden wrote: > The CL description mentions owners and bug components. ...
3 years, 4 months ago (2017-07-26 15:12:50 UTC) #8
eakuefner
lgtm
3 years, 4 months ago (2017-07-26 22:48:36 UTC) #9
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/2988823002/40001
3 years, 4 months ago (2017-07-26 22:52:44 UTC) #12
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/8327)
3 years, 4 months ago (2017-07-26 22:55:57 UTC) #14
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/2988823002/40001
3 years, 4 months ago (2017-07-27 20:05:12 UTC) #16
commit-bot: I haz the power
3 years, 4 months ago (2017-07-27 20:09:10 UTC) #19
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/external/github.com/catapult-project/catapu...

Powered by Google App Engine
This is Rietveld 408576698