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

Issue 2792623002: Track large array buffer allocations. (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

Track large array buffer allocations. Adds a counter for large array buffers. Used to give an indication of how common large array buffers are allocated in V8. For the moment, we assume a 1Mb cutoff for the notion of large array buffers. We also use log2(length) to cleanly bucket sizes into a histogram. BUG=chromium:704922 R=bbudge@chromium.org,bradnelson@chromium.org,mtrofin@chromium.org Review-Url: https://codereview.chromium.org/2792623002 Cr-Commit-Position: refs/heads/master@{#44317} Committed: https://chromium.googlesource.com/v8/v8/+/0c5f5a3acf284d4fffd84fd08efa154cb1a132b5

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fix issues raised by bbudge #

Total comments: 4

Patch Set 3 : Simplify conversion to log2 value. #

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

Messages

Total messages: 26 (16 generated)
kschimpf
Please review. Thanks.
3 years, 8 months ago (2017-03-31 18:23:17 UTC) #3
bbudge
https://codereview.chromium.org/2792623002/diff/1/src/counters.h File src/counters.h (right): https://codereview.chromium.org/2792623002/diff/1/src/counters.h#newcode932 src/counters.h:932: HR(big_array_buffer_allocations, V8.BigArrayBufferAllocations, 1, 32, 32) nit: maybe rename so ...
3 years, 8 months ago (2017-03-31 19:01:19 UTC) #6
kschimpf
Fixed noted issues, ready for another review. https://codereview.chromium.org/2792623002/diff/1/src/counters.h File src/counters.h (right): https://codereview.chromium.org/2792623002/diff/1/src/counters.h#newcode932 src/counters.h:932: HR(big_array_buffer_allocations, V8.BigArrayBufferAllocations, ...
3 years, 8 months ago (2017-03-31 19:31:52 UTC) #9
kschimpf
Mircea I am trying to get this in to meet the 59 release. Do you ...
3 years, 8 months ago (2017-03-31 20:49:00 UTC) #14
bbudge
LGTM w/suggestion https://codereview.chromium.org/2792623002/diff/20001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/2792623002/diff/20001/src/objects.cc#newcode19482 src/objects.cc:19482: : (64 - base::bits::CountLeadingZeros64(allocated_length)))); You could also ...
3 years, 8 months ago (2017-03-31 20:52:29 UTC) #15
Mircea Trofin
https://codereview.chromium.org/2792623002/diff/20001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/2792623002/diff/20001/src/objects.cc#newcode19482 src/objects.cc:19482: : (64 - base::bits::CountLeadingZeros64(allocated_length)))); On 2017/03/31 20:52:28, bbudge wrote: ...
3 years, 8 months ago (2017-03-31 21:01:38 UTC) #16
kschimpf
https://codereview.chromium.org/2792623002/diff/20001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/2792623002/diff/20001/src/objects.cc#newcode19482 src/objects.cc:19482: : (64 - base::bits::CountLeadingZeros64(allocated_length)))); On 2017/03/31 20:52:28, bbudge wrote: ...
3 years, 8 months ago (2017-03-31 21:11:02 UTC) #17
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/2792623002/40001
3 years, 8 months ago (2017-03-31 21:11:31 UTC) #20
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/2792623002/40001
3 years, 8 months ago (2017-03-31 21:27:19 UTC) #23
commit-bot: I haz the power
3 years, 8 months ago (2017-03-31 21:45:33 UTC) #26
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/v8/v8/+/0c5f5a3acf284d4fffd84fd08efa154cb1a...

Powered by Google App Engine
This is Rietveld 408576698