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

Issue 1992253002: Adding performance tracking for canvas API calls (Closed)

Created:
4 years, 7 months ago by xidachen
Modified:
4 years, 7 months ago
CC:
chromium-reviews, dshwang, ajuma+watch-canvas_chromium.org, blink-reviews-html_chromium.org, haraken, dglazkov+blink, Rik, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adding performance tracking for canvas API calls In this CL, we add timer to some of the expensive API calls in 2d canvas. These API calls includes: 1. drawImage 2. createImageData 3. getImageData 4. putImageData 5. toDataURL Measuring toBlob will be in another CL, it is more complicated than this because of its idle scheduling scheme. BUG=612585 Committed: https://crrev.com/5aa1628e82232fab9951a2895094a216661271f4 Cr-Commit-Position: refs/heads/master@{#396105}

Patch Set 1 #

Total comments: 13

Patch Set 2 : address comments, add to histogram #

Patch Set 3 : address comments #

Patch Set 4 : fix typo #

Total comments: 2

Patch Set 5 : address comments #

Patch Set 6 : use thread safe static local #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -0 lines) Patch
M third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp View 1 2 3 4 5 1 chunk +30 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp View 1 2 3 4 5 4 chunks +81 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 2 chunks +54 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (9 generated)
xidachen
PTAL
4 years, 7 months ago (2016-05-19 14:51:09 UTC) #2
Justin Novosad
https://codereview.chromium.org/1992253002/diff/1/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp File third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp (right): https://codereview.chromium.org/1992253002/diff/1/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp#newcode609 third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp:609: DEFINE_STATIC_LOCAL(CustomCountHistogram, scopedUsCounterGPU, ("Blink.Canvas.ToDataURL.GPU", 0, 10000000, 50)); You are missing ...
4 years, 7 months ago (2016-05-19 15:28:40 UTC) #3
Justin Novosad
https://codereview.chromium.org/1992253002/diff/1/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp File third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp (right): https://codereview.chromium.org/1992253002/diff/1/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp#newcode620 third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp:620: exceptionState.throwSecurityError("Tainted canvases may not be exported."); We should start ...
4 years, 7 months ago (2016-05-19 15:36:56 UTC) #4
xidachen
+isherman@: histogram owner https://codereview.chromium.org/1992253002/diff/1/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp File third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp (right): https://codereview.chromium.org/1992253002/diff/1/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp#newcode612 third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp:612: DEFINE_STATIC_LOCAL(CustomCountHistogram, scopedUsCounterDL, ("Blink.Canvas.ToDataURL.DL", 0, 10000000, 50)); ...
4 years, 7 months ago (2016-05-20 12:36:54 UTC) #6
Ilya Sherman
Please use histogram_suffixes elements to reduce the amount of repetition in the histograms.xml file. Note ...
4 years, 7 months ago (2016-05-20 21:54:22 UTC) #7
xidachen
Changed to use histogram_suffixes, PTAL.
4 years, 7 months ago (2016-05-24 14:35:54 UTC) #8
Justin Novosad
On 2016/05/24 14:35:54, xidachen wrote: > Changed to use histogram_suffixes, PTAL. The expansive instrumentation is ...
4 years, 7 months ago (2016-05-24 14:47:35 UTC) #9
Ilya Sherman
LGTM % a nit. Since you're adding quite a large number of histograms, I'd recommend ...
4 years, 7 months ago (2016-05-25 00:20:04 UTC) #10
xidachen
https://codereview.chromium.org/1992253002/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1992253002/diff/60001/tools/metrics/histograms/histograms.xml#newcode90998 tools/metrics/histograms/histograms.xml:90998: +</histogram_suffixes> On 2016/05/25 00:20:04, Ilya Sherman wrote: > You ...
4 years, 7 months ago (2016-05-25 01:35:06 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1992253002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1992253002/80001
4 years, 7 months ago (2016-05-25 01:36:00 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/233412)
4 years, 7 months ago (2016-05-25 03:08:59 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1992253002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1992253002/100001
4 years, 7 months ago (2016-05-25 14:46:23 UTC) #17
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/227976)
4 years, 7 months ago (2016-05-25 19:10:20 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1992253002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1992253002/100001
4 years, 7 months ago (2016-05-25 23:33:53 UTC) #22
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 7 months ago (2016-05-26 03:40:50 UTC) #23
commit-bot: I haz the power
4 years, 7 months ago (2016-05-26 03:42:59 UTC) #25
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/5aa1628e82232fab9951a2895094a216661271f4
Cr-Commit-Position: refs/heads/master@{#396105}

Powered by Google App Engine
This is Rietveld 408576698