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

Issue 1583483002: [tracing] Add method to create "weak" global dumps (Closed)

Created:
4 years, 11 months ago by ssid
Modified:
4 years, 11 months ago
CC:
chromium-reviews, tracing+reviews_chromium.org, wfh+watch_chromium.org, darin-cc_chromium.org, jam, vmpstr+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[tracing] Add method to create "weak" global dumps The renderer process could add memory dumps that are known to be non-existent in the browser. To resolve this issue, a notion of "weak" global allocator dump is introduced so that the renderer could tell it is unsure of the existence of the dump. A weak dump will be removed in the UI unless at least one process creates a non-weak global dump with the same guid. This would mark the existence of the memory. Sample use case: The browser creates a non-weak global dump and a renderer process creates a weak global dump for discardable segments. This represents the fact that the renderer doesn't know whether a segment is or isn't present in memory. BUG=570655 Committed: https://crrev.com/a937635dd0ffef780f0a0b5fbbeccd31cac5e60e Cr-Commit-Position: refs/heads/master@{#370683}

Patch Set 1 #

Patch Set 2 : Changes #

Patch Set 3 : global is weak. #

Patch Set 4 : Edges are weak #

Patch Set 5 : back to weak dumps. #

Total comments: 17

Patch Set 6 : Just weak global dumps. #

Patch Set 7 : unittest #

Patch Set 8 : Nits. #

Patch Set 9 : Nit. #

Total comments: 29

Patch Set 10 : petr's comments. #

Patch Set 11 : Nits. #

Total comments: 10

Patch Set 12 : Fixes. #

Total comments: 22

Patch Set 13 : Fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -16 lines) Patch
M base/trace_event/memory_allocator_dump.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +13 lines, -0 lines 0 comments Download
M base/trace_event/memory_allocator_dump.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -1 line 0 comments Download
M base/trace_event/process_memory_dump.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +9 lines, -0 lines 0 comments Download
M base/trace_event/process_memory_dump.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +18 lines, -4 lines 0 comments Download
M base/trace_event/process_memory_dump_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +47 lines, -10 lines 0 comments Download
M content/common/discardable_shared_memory_heap.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 40 (21 generated)
ssid
PTAL, thanks
4 years, 11 months ago (2016-01-13 11:54:14 UTC) #3
ssid
+petr I considered the suggestion of having a weak attribute on the global dump. But ...
4 years, 11 months ago (2016-01-13 11:57:42 UTC) #5
ssid
I added flags to allocator dump as weak. WDYT?
4 years, 11 months ago (2016-01-13 16:29:37 UTC) #11
petrcermak
A couple of comments. Description nits: * Please don't say "segments" in the description. They ...
4 years, 11 months ago (2016-01-13 17:46:15 UTC) #12
ssid
I added a new method to create weak global dump. PTAL Thanks https://codereview.chromium.org/1583483002/diff/140001/base/trace_event/memory_allocator_dump.h File base/trace_event/memory_allocator_dump.h ...
4 years, 11 months ago (2016-01-15 17:14:56 UTC) #14
petrcermak
Thanks for the overhaul. I think that the patch is almost there :-) Petr https://codereview.chromium.org/1583483002/diff/220001/base/trace_event/memory_allocator_dump.h ...
4 years, 11 months ago (2016-01-18 11:23:47 UTC) #15
petrcermak
Thanks for modifying the description. A couple more comments: * Every dump will *always* be ...
4 years, 11 months ago (2016-01-18 11:27:34 UTC) #16
ssid
Thanks, made changes. PTAL https://codereview.chromium.org/1583483002/diff/220001/base/trace_event/memory_allocator_dump.h File base/trace_event/memory_allocator_dump.h (right): https://codereview.chromium.org/1583483002/diff/220001/base/trace_event/memory_allocator_dump.h#newcode30 base/trace_event/memory_allocator_dump.h:30: // A dump marked weak ...
4 years, 11 months ago (2016-01-18 16:28:36 UTC) #18
petrcermak
LGTM with some final comments. Two more description comments: * s/with same guid/with the same ...
4 years, 11 months ago (2016-01-18 17:18:12 UTC) #19
ssid
thanks made changes. https://codereview.chromium.org/1583483002/diff/260001/base/trace_event/process_memory_dump_unittest.cc File base/trace_event/process_memory_dump_unittest.cc (right): https://codereview.chromium.org/1583483002/diff/260001/base/trace_event/process_memory_dump_unittest.cc#newcode36 base/trace_event/process_memory_dump_unittest.cc:36: pmd1->CreateWeakSharedGlobalAllocatorDump(shared_mad_guid2); On 2016/01/18 17:18:12, petrcermak wrote: ...
4 years, 11 months ago (2016-01-19 11:48:35 UTC) #22
Primiano Tucci (use gerrit)
LGTM with some minor comments https://codereview.chromium.org/1583483002/diff/280001/base/trace_event/memory_allocator_dump.cc File base/trace_event/memory_allocator_dump.cc (right): https://codereview.chromium.org/1583483002/diff/280001/base/trace_event/memory_allocator_dump.cc#newcode95 base/trace_event/memory_allocator_dump.cc:95: value->SetInteger("flags", static_cast<int>(flags_)); and here ...
4 years, 11 months ago (2016-01-19 17:07:12 UTC) #23
ssid
Thanks, made changes. https://codereview.chromium.org/1583483002/diff/280001/base/trace_event/memory_allocator_dump.cc File base/trace_event/memory_allocator_dump.cc (right): https://codereview.chromium.org/1583483002/diff/280001/base/trace_event/memory_allocator_dump.cc#newcode95 base/trace_event/memory_allocator_dump.cc:95: value->SetInteger("flags", static_cast<int>(flags_)); On 2016/01/19 17:07:11, Primiano ...
4 years, 11 months ago (2016-01-20 18:58:34 UTC) #26
ssid
+avi, +reveman for small change in content/discardable..heap. PTAL, thanks.
4 years, 11 months ago (2016-01-20 19:00:09 UTC) #28
Avi (use Gerrit)
lgtm stamp
4 years, 11 months ago (2016-01-20 19:08:05 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1583483002/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1583483002/340001
4 years, 11 months ago (2016-01-21 11:56:24 UTC) #31
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-21 13:36:37 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1583483002/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1583483002/340001
4 years, 11 months ago (2016-01-21 13:37:27 UTC) #36
commit-bot: I haz the power
Committed patchset #13 (id:340001)
4 years, 11 months ago (2016-01-21 13:41:43 UTC) #38
commit-bot: I haz the power
4 years, 11 months ago (2016-01-21 13:42:53 UTC) #40
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/a937635dd0ffef780f0a0b5fbbeccd31cac5e60e
Cr-Commit-Position: refs/heads/master@{#370683}

Powered by Google App Engine
This is Rietveld 408576698