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

Issue 2786913004: Add counter for new shared/array buffers that fail to allocate space. (Closed)

Created:
3 years, 8 months ago by kschimpf
Modified:
3 years, 8 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

Add counter for new shared/array buffers that fail to allocate space. Records histogram of ArrayBuffer/SharedArrayBuffer new allocations that failed because it couldn't allocate space for the buffer. Histogram is based on the buffer size requested. This counter is intended to give some clue as to how often, and what sizes are being requested. Unfortunately, the how often can't be answered with the current counter. The problem is that V8 doesn't currently support this possibility yet. Hence, for now, introducing a counter that at least counts the number/size of failing requests. BUG=chromium:704922 R=bbudge@chromium.org,bradnelson@chromium.org,mtrofin@chromium.org Review-Url: https://codereview.chromium.org/2786913004 Cr-Commit-Position: refs/heads/master@{#44318} Committed: https://chromium.googlesource.com/v8/v8/+/9e28cf1318c9ff274ef7599127f7af4cb51b42b5

Patch Set 1 #

Patch Set 2 : Clean up counter name. #

Total comments: 6

Patch Set 3 : Move array buffer allocation failure counter #

Patch Set 4 : Change to use logorithmic scale on allocation size. #

Total comments: 2

Patch Set 5 : Simplify conversion to log base. #

Patch Set 6 : Fix merge conflict. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -2 lines) Patch
M src/counters.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M src/objects.cc View 1 2 3 4 5 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 36 (22 generated)
kschimpf
Please review. Thanks.
3 years, 8 months ago (2017-03-30 21:27:57 UTC) #6
bbudge
https://codereview.chromium.org/2786913004/diff/20001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/2786913004/diff/20001/src/api.cc#newcode7686 src/api.cc:7686: static base::Mutex mutex; I don't think you have to ...
3 years, 8 months ago (2017-03-30 22:38:27 UTC) #9
kschimpf
https://codereview.chromium.org/2786913004/diff/20001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/2786913004/diff/20001/src/api.cc#newcode7686 src/api.cc:7686: static base::Mutex mutex; On 2017/03/30 22:38:26, bbudge wrote: > ...
3 years, 8 months ago (2017-03-31 16:31:00 UTC) #10
kschimpf
Still waiting for a review. Hoping to get this in today.
3 years, 8 months ago (2017-03-31 19:32:27 UTC) #15
kschimpf
Please review. Note that I have changed the bad allocation size histogram to be logarithmic. ...
3 years, 8 months ago (2017-03-31 20:08:09 UTC) #16
kschimpf
Mircea, I'm trying to get this into release 59, and not getting any response from ...
3 years, 8 months ago (2017-03-31 20:50:33 UTC) #19
kschimpf
Mircea, I'm trying to get this into release 59, and not getting any response from ...
3 years, 8 months ago (2017-03-31 20:50:36 UTC) #20
bbudge
LGTM w/suggestion same as on other CL for log size. https://codereview.chromium.org/2786913004/diff/60001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/2786913004/diff/60001/src/objects.cc#newcode19486 ...
3 years, 8 months ago (2017-03-31 20:58:38 UTC) #21
kschimpf
https://codereview.chromium.org/2786913004/diff/60001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/2786913004/diff/60001/src/objects.cc#newcode19486 src/objects.cc:19486: : (64 - base::bits::CountLeadingZeros64(allocated_length))); On 2017/03/31 20:58:38, bbudge wrote: ...
3 years, 8 months ago (2017-03-31 21:12:41 UTC) #22
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/2786913004/80001
3 years, 8 months ago (2017-03-31 21:13:00 UTC) #25
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/2786913004/80001
3 years, 8 months ago (2017-03-31 21:27:40 UTC) #28
commit-bot: I haz the power
Failed to apply patch for src/counters.h: While running git apply --index -3 -p1; error: patch ...
3 years, 8 months ago (2017-03-31 21:46:37 UTC) #30
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/2786913004/100001
3 years, 8 months ago (2017-03-31 21:49:59 UTC) #33
commit-bot: I haz the power
3 years, 8 months ago (2017-03-31 22:19:48 UTC) #36
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/v8/v8/+/9e28cf1318c9ff274ef7599127f7af4cb51...

Powered by Google App Engine
This is Rietveld 408576698