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

Issue 1308213005: Fix the size dumped by child discardable manager for tracing. (Closed)

Created:
5 years, 3 months ago by ssid
Modified:
5 years, 3 months ago
CC:
reveman, chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@discardable
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix the size dumped by child discardable manager for tracing. The child discardable manager dumps the size of the discardable memory allocated as length of span, which is actually the number of blocks. This CL fixes that using the length * block_size. The sub-allocations are also added under allocated_objects dump. BUG=503168 Committed: https://crrev.com/053b1f28b2a97bf1e0eaf11d88c291bef65733aa Cr-Commit-Position: refs/heads/master@{#345846}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Change to block size. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -4 lines) Patch
M content/common/discardable_shared_memory_heap.h View 1 1 chunk +1 line, -0 lines 1 comment Download
M content/common/discardable_shared_memory_heap.cc View 1 2 chunks +6 lines, -4 lines 3 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 15 (4 generated)
ssid
Small fix for the tracing. PTAL, thanks.
5 years, 3 months ago (2015-08-26 15:48:07 UTC) #2
Avi (use Gerrit)
lgtm
5 years, 3 months ago (2015-08-26 15:52:22 UTC) #3
reveman
https://codereview.chromium.org/1308213005/diff/1/content/common/discardable_shared_memory_heap.cc File content/common/discardable_shared_memory_heap.cc (right): https://codereview.chromium.org/1308213005/diff/1/content/common/discardable_shared_memory_heap.cc#newcode77 content/common/discardable_shared_memory_heap.cc:77: static_cast<uint64_t>(span->shared_memory()->mapped_size())); hm, mapped_size is the total size of the ...
5 years, 3 months ago (2015-08-26 15:56:18 UTC) #5
ssid
Yes done. https://codereview.chromium.org/1308213005/diff/1/content/common/discardable_shared_memory_heap.cc File content/common/discardable_shared_memory_heap.cc (right): https://codereview.chromium.org/1308213005/diff/1/content/common/discardable_shared_memory_heap.cc#newcode77 content/common/discardable_shared_memory_heap.cc:77: static_cast<uint64_t>(span->shared_memory()->mapped_size())); On 2015/08/26 15:56:18, reveman wrote: > ...
5 years, 3 months ago (2015-08-26 16:00:35 UTC) #6
reveman
https://codereview.chromium.org/1308213005/diff/20001/content/common/discardable_shared_memory_heap.cc File content/common/discardable_shared_memory_heap.cc (right): https://codereview.chromium.org/1308213005/diff/20001/content/common/discardable_shared_memory_heap.cc#newcode82 content/common/discardable_shared_memory_heap.cc:82: base::StringPrintf("discardable/segment_%d/allocated_objects", id_)); why are you adding /allocated_objects here?
5 years, 3 months ago (2015-08-26 16:02:09 UTC) #7
reveman
https://codereview.chromium.org/1308213005/diff/20001/content/common/discardable_shared_memory_heap.h File content/common/discardable_shared_memory_heap.h (right): https://codereview.chromium.org/1308213005/diff/20001/content/common/discardable_shared_memory_heap.h#newcode121 content/common/discardable_shared_memory_heap.h:121: size_t block_size, Maybe remove |span| and |block_size| args and ...
5 years, 3 months ago (2015-08-26 16:04:59 UTC) #8
ssid
https://codereview.chromium.org/1308213005/diff/20001/content/common/discardable_shared_memory_heap.cc File content/common/discardable_shared_memory_heap.cc (right): https://codereview.chromium.org/1308213005/diff/20001/content/common/discardable_shared_memory_heap.cc#newcode82 content/common/discardable_shared_memory_heap.cc:82: base::StringPrintf("discardable/segment_%d/allocated_objects", id_)); On 2015/08/26 16:02:09, reveman wrote: > why ...
5 years, 3 months ago (2015-08-26 16:05:57 UTC) #9
reveman
lgtm https://codereview.chromium.org/1308213005/diff/20001/content/common/discardable_shared_memory_heap.cc File content/common/discardable_shared_memory_heap.cc (right): https://codereview.chromium.org/1308213005/diff/20001/content/common/discardable_shared_memory_heap.cc#newcode82 content/common/discardable_shared_memory_heap.cc:82: base::StringPrintf("discardable/segment_%d/allocated_objects", id_)); On 2015/08/26 at 16:05:57, ssid wrote: ...
5 years, 3 months ago (2015-08-26 16:21:05 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1308213005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1308213005/20001
5 years, 3 months ago (2015-08-27 10:26:37 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 3 months ago (2015-08-27 11:15:04 UTC) #14
commit-bot: I haz the power
5 years, 3 months ago (2015-08-27 11:15:40 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/053b1f28b2a97bf1e0eaf11d88c291bef65733aa
Cr-Commit-Position: refs/heads/master@{#345846}

Powered by Google App Engine
This is Rietveld 408576698