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

Issue 2795463002: Add histograms to track issues with JavaScript array buffers. (Closed)

Created:
3 years, 8 months ago by kschimpf
Modified:
3 years, 8 months ago
Reviewers:
brannelson, bbudge, Mircea Trofin, Ilya Sherman
CC:
chromium-reviews, asvitkine+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add histograms to track issues with JavaScript array buffers. There has been concerns about that WASM could be using very large Javascript array buffers (including shared array buffers). Currently, there is no visibility to check this presumption. This CL is to (at least temporarily) add to UMA histograms to get a better understanding of this potential issue. It creates two histograms. The first shows the frequency of allocating array buffers of at least size 1Mb. The other shows the relative sizes of array buffers when the memory request is unable to be met. See the following for the corresponding V8 changes: Large buffers: https://codereview.chromium.org/2792623002 New failures: https://codereview.chromium.org/2786913004 Fix to megabtye sizes: https://codereview.chromium.org/2795763002 BUG=chromium:704922 R=bbudge@chromium.org,brannelson@chromium.or,isherman@chromium.org,mtrofin@chromium.org Review-Url: https://codereview.chromium.org/2795463002 Cr-Commit-Position: refs/heads/master@{#461780} Committed: https://chromium.googlesource.com/chromium/src/+/c69cbb716c31aa6fc635f52d314781d35222b73f

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix mispelling #

Total comments: 5

Patch Set 3 : Fix some issues with the histogram descriptions. #

Patch Set 4 : Fix array buffer allocations to megabytes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -0 lines) Patch
M tools/metrics/histograms/histograms.xml View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (11 generated)
kschimpf
Please review. Thanks.
3 years, 8 months ago (2017-03-31 19:56:31 UTC) #1
kschimpf
Mircea, Same here. Could you review?
3 years, 8 months ago (2017-03-31 20:52:02 UTC) #6
bbudge
LGTM w/nit but you still need histogram OWNER https://codereview.chromium.org/2795463002/diff/1/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2795463002/diff/1/tools/metrics/histograms/histograms.xml#newcode75269 tools/metrics/histograms/histograms.xml:75269: + ...
3 years, 8 months ago (2017-03-31 20:56:06 UTC) #7
kschimpf
https://codereview.chromium.org/2795463002/diff/1/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2795463002/diff/1/tools/metrics/histograms/histograms.xml#newcode75269 tools/metrics/histograms/histograms.xml:75269: + meet the corresonding request. On 2017/03/31 20:56:06, bbudge ...
3 years, 8 months ago (2017-03-31 21:16:46 UTC) #9
kschimpf
Waiting for approval from OWNER isherman.
3 years, 8 months ago (2017-03-31 21:53:44 UTC) #11
Ilya Sherman
Please don't land the C++ code for recording to histograms without getting histograms.xml reviewed. Sometimes ...
3 years, 8 months ago (2017-03-31 22:00:36 UTC) #12
kschimpf
Let me start out by apologizing for incorrectly committing the other CLs. I did not ...
3 years, 8 months ago (2017-03-31 22:26:32 UTC) #13
kschimpf
Ran D8 and verified data was being collected. Also modified V8 code to collect in ...
3 years, 8 months ago (2017-04-03 17:45:14 UTC) #15
Ilya Sherman
Metrics LGTM, thanks.
3 years, 8 months ago (2017-04-04 00:10:11 UTC) #16
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/2795463002/60001
3 years, 8 months ago (2017-04-04 17:03:28 UTC) #19
commit-bot: I haz the power
3 years, 8 months ago (2017-04-04 18:35:56 UTC) #22
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/c69cbb716c31aa6fc635f52d3147...

Powered by Google App Engine
This is Rietveld 408576698