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 1463573002: publish canvas context API stat metrics (Closed)

Created:
5 years, 1 month ago by zmin
Modified:
5 years, 1 month ago
CC:
chromium-reviews, krit, dshwang, drott+blinkwatch_chromium.org, ajuma+watch-canvas_chromium.org, blink-reviews-html_chromium.org, pdr+graphicswatchlist_chromium.org, jbroman, danakj, blink-reviews-platform-graphics_chromium.org, dglazkov+blink, Rik, f(malita), asvitkine+watch_chromium.org, blink-reviews, vmpstr+blinkwatch_chromium.org, Stephen Chennney, rwlbuis, Zhenyao Mo, Ken Russell (switch to Gerrit)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

publish canvas context API usage metrics Update Canvas.ContextType in histograms.xml to match the enum in C++ file. demo link: https://drive.google.com/corp/drive/u/0/folders/0BySFHAS13VhbaWJzbUh4dXRERjA BUG=303068 Committed: https://crrev.com/06d32e3b68c141a641d40545b037ee9b9f713b49 Cr-Commit-Position: refs/heads/master@{#361006}

Patch Set 1 #

Total comments: 20

Patch Set 2 : cr #

Total comments: 9

Patch Set 3 : cr #

Total comments: 1

Patch Set 4 : xml file change #

Total comments: 4

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -6 lines) Patch
M third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp View 1 2 3 4 3 chunks +16 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/blink_platform.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/graphics/CanvasMetrics.h View 1 2 3 4 1 chunk +31 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/graphics/CanvasMetrics.cpp View 1 2 3 4 1 chunk +17 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 3 chunks +23 lines, -2 lines 0 comments Download

Messages

Total messages: 30 (11 generated)
zmin
unit test will be uploaded when it's done.
5 years, 1 month ago (2015-11-19 19:35:07 UTC) #2
Justin Novosad
https://codereview.chromium.org/1463573002/diff/1/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp File third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp (right): https://codereview.chromium.org/1463573002/diff/1/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp#newcode121 third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp:121: CanvasMetrics::countCanvasContextStat(CanvasMetrics::ContextCreated); ContextCreated -> CanvasCreated https://codereview.chromium.org/1463573002/diff/1/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp#newcode659 third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp:659: CanvasMetrics::countCanvasContextStat(CanvasMetrics::ContextCreatedWithGPUAccelerated); GPUAccelerated2DCanvasImageBufferCreated https://codereview.chromium.org/1463573002/diff/1/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp#newcode662 ...
5 years, 1 month ago (2015-11-19 20:36:09 UTC) #3
zmin
https://codereview.chromium.org/1463573002/diff/1/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp File third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp (right): https://codereview.chromium.org/1463573002/diff/1/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp#newcode121 third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp:121: CanvasMetrics::countCanvasContextStat(CanvasMetrics::ContextCreated); On 2015/11/19 20:36:08, Justin Novosad wrote: > ContextCreated ...
5 years, 1 month ago (2015-11-19 22:23:36 UTC) #7
Justin Novosad
https://codereview.chromium.org/1463573002/diff/20001/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp File third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/1463573002/diff/20001/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp#newcode137 third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp:137: CanvasMetrics::countCanvasContextStat(CanvasMetrics::CanvasContextCreated); This should be more specific: I'd like 2DContextCreated, ...
5 years, 1 month ago (2015-11-20 03:30:45 UTC) #8
zmin
Remove @zmo as the WebGL2RenderingContextBase.cpp is reverted. cc @kbr as I add him into the ...
5 years, 1 month ago (2015-11-20 17:08:33 UTC) #11
Justin Novosad
lgtm for everything under thrid_party/WebKit https://codereview.chromium.org/1463573002/diff/40001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/1463573002/diff/40001/tools/metrics/histograms/histograms.xml#oldcode55453 tools/metrics/histograms/histograms.xml:55453: - <int value="1" label="webkit-3d"/> ...
5 years, 1 month ago (2015-11-20 17:30:27 UTC) #12
zmin
On 2015/11/20 17:30:27, Justin Novosad wrote: > lgtm for everything under thrid_party/WebKit > > https://codereview.chromium.org/1463573002/diff/40001/tools/metrics/histograms/histograms.xml ...
5 years, 1 month ago (2015-11-20 21:18:58 UTC) #13
zmin
5 years, 1 month ago (2015-11-20 21:23:00 UTC) #14
Justin Novosad
Still lgtm, Ping rkaplow
5 years, 1 month ago (2015-11-20 21:40:23 UTC) #15
zmin
5 years, 1 month ago (2015-11-20 22:06:08 UTC) #17
jwd
https://codereview.chromium.org/1463573002/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1463573002/diff/60001/tools/metrics/histograms/histograms.xml#newcode51288 tools/metrics/histograms/histograms.xml:51288: + <summary>The State of Canvas 2D Context API.</summary> Can ...
5 years, 1 month ago (2015-11-20 22:07:05 UTC) #18
jwd
https://codereview.chromium.org/1463573002/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1463573002/diff/60001/tools/metrics/histograms/histograms.xml#newcode51285 tools/metrics/histograms/histograms.xml:51285: +<histogram name="WebCore.CanvasContextStat" enum="CanvasContextStat"> nit: state not stat?
5 years, 1 month ago (2015-11-20 22:10:12 UTC) #19
jwd
https://codereview.chromium.org/1463573002/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1463573002/diff/60001/tools/metrics/histograms/histograms.xml#newcode51285 tools/metrics/histograms/histograms.xml:51285: +<histogram name="WebCore.CanvasContextStat" enum="CanvasContextStat"> Actually, maybe change to CanvasContextUsageStats. https://codereview.chromium.org/1463573002/diff/60001/tools/metrics/histograms/histograms.xml#newcode51288 ...
5 years, 1 month ago (2015-11-20 22:16:31 UTC) #20
zmin
Hi Jesse, Can you take a look again. Thanks, Owen
5 years, 1 month ago (2015-11-20 22:46:27 UTC) #22
Ken Russell (switch to Gerrit)
Seems fine. LGTM
5 years, 1 month ago (2015-11-20 23:10:42 UTC) #24
jwd
metrics LGTM
5 years, 1 month ago (2015-11-21 00:36:02 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1463573002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1463573002/80001
5 years, 1 month ago (2015-11-21 02:14:32 UTC) #28
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 1 month ago (2015-11-21 04:36:47 UTC) #29
commit-bot: I haz the power
5 years, 1 month ago (2015-11-21 04:37:33 UTC) #30
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/06d32e3b68c141a641d40545b037ee9b9f713b49
Cr-Commit-Position: refs/heads/master@{#361006}

Powered by Google App Engine
This is Rietveld 408576698