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 2923123004: [memory-infra] Add API to ProcessMemoryDump to create ownership edges for base::SharedMemory (Closed)

Created:
3 years, 6 months ago by ssid
Modified:
3 years, 6 months ago
CC:
chromium-reviews, tracing+reviews_chromium.org, wfh+watch_chromium.org, danakj+watch_chromium.org, vmpstr+watch_chromium.org, hjd, Nico
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[memory-infra] Add API to ProcessMemoryDump to create ownership edges for base::SharedMemory This cl is adapted from hajimehoshi's chromium-review.googlesource.com/c/523684 This CL adds a new method to ProcessMemoryDump to create proper ownership edges for base::SharedMemory. It handles both the cases where the global dumps are created by clients and global dumps are created by SharedMemoryTracker. BUG=604726 Review-Url: https://codereview.chromium.org/2923123004 Cr-Commit-Position: refs/heads/master@{#478187} Committed: https://chromium.googlesource.com/chromium/src/+/93876304f62aa5f7c2354c739e5ac84e61d3ea13

Patch Set 1 #

Patch Set 2 : nits. #

Patch Set 3 : fix tracker #

Patch Set 4 : nits. #

Total comments: 4

Patch Set 5 : moar comments. #

Patch Set 6 : add tests #

Total comments: 8

Patch Set 7 : fixes. #

Total comments: 8

Patch Set 8 : fix typo. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -5 lines) Patch
M base/memory/shared_memory_tracker.cc View 1 2 3 4 5 1 chunk +4 lines, -5 lines 0 comments Download
M base/trace_event/memory_allocator_dump_guid.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M base/trace_event/memory_allocator_dump_guid.cc View 1 2 3 4 5 6 1 chunk +18 lines, -0 lines 0 comments Download
M base/trace_event/process_memory_dump.h View 1 2 3 4 5 3 chunks +36 lines, -0 lines 0 comments Download
M base/trace_event/process_memory_dump.cc View 1 2 3 4 5 6 7 3 chunks +65 lines, -0 lines 0 comments Download
M base/trace_event/process_memory_dump_unittest.cc View 1 2 3 4 5 2 chunks +62 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (20 generated)
ssid
This CL depends on https://codereview.chromium.org/2911263003#ps40001 as well as https://chromium-review.googlesource.com/c/520546/. But this is the next step ...
3 years, 6 months ago (2017-06-06 18:04:17 UTC) #2
ssid
Primiano, I guess this CL should help you understand what's going on in https://codereview.chromium.org/2911263003
3 years, 6 months ago (2017-06-06 18:20:58 UTC) #3
hajimehoshi
Wow, it looks like this CL includes the almost same change in https://chromium-review.googlesource.com/c/523684. It'd be ...
3 years, 6 months ago (2017-06-07 04:58:04 UTC) #4
hajimehoshi
> @Hajime, I think it's right that I should be doing this change since it's ...
3 years, 6 months ago (2017-06-07 05:07:34 UTC) #5
ssid
On 2017/06/07 04:58:04, hajimehoshi wrote: > Wow, it looks like this CL includes the almost ...
3 years, 6 months ago (2017-06-07 05:08:42 UTC) #6
ssid
On 2017/06/07 05:08:42, ssid wrote: > On 2017/06/07 04:58:04, hajimehoshi wrote: > > Wow, it ...
3 years, 6 months ago (2017-06-07 05:10:29 UTC) #7
hajimehoshi
On 2017/06/07 05:10:29, ssid wrote: > On 2017/06/07 05:08:42, ssid wrote: > > On 2017/06/07 ...
3 years, 6 months ago (2017-06-07 05:20:17 UTC) #9
ssid
Primiano, can you please review this last one in Rietveld ? It was just created ...
3 years, 6 months ago (2017-06-08 00:05:58 UTC) #12
hajimehoshi
https://codereview.chromium.org/2923123004/diff/100001/base/memory/shared_memory_tracker.cc File base/memory/shared_memory_tracker.cc (right): https://codereview.chromium.org/2923123004/diff/100001/base/memory/shared_memory_tracker.cc#newcode95 base/memory/shared_memory_tracker.cc:95: 0 /* importance */); I tend to think we ...
3 years, 6 months ago (2017-06-08 05:10:05 UTC) #15
Primiano Tucci (use gerrit)
LGTM, +hjd fyi (don't think this change anything in your plans, but just in case ...
3 years, 6 months ago (2017-06-08 15:09:33 UTC) #16
ssid
Thanks. fixed https://codereview.chromium.org/2923123004/diff/100001/base/memory/shared_memory_tracker.cc File base/memory/shared_memory_tracker.cc (right): https://codereview.chromium.org/2923123004/diff/100001/base/memory/shared_memory_tracker.cc#newcode95 base/memory/shared_memory_tracker.cc:95: 0 /* importance */); On 2017/06/08 05:10:05, ...
3 years, 6 months ago (2017-06-08 18:44:23 UTC) #17
ssid
TBR: thakis. This is a tiny change in how the SharedMemory dump provider uses the ...
3 years, 6 months ago (2017-06-08 18:45:56 UTC) #19
ssid
TBR: dcheng. This is a tiny change in how the SharedMemory dump provider uses the ...
3 years, 6 months ago (2017-06-08 18:47:31 UTC) #21
dcheng
https://codereview.chromium.org/2923123004/diff/120001/base/trace_event/process_memory_dump.cc File base/trace_event/process_memory_dump.cc (right): https://codereview.chromium.org/2923123004/diff/120001/base/trace_event/process_memory_dump.cc#newcode418 base/trace_event/process_memory_dump.cc:418: // The guid of the local dump cretaed by ...
3 years, 6 months ago (2017-06-08 19:28:31 UTC) #25
ssid
https://codereview.chromium.org/2923123004/diff/120001/base/trace_event/process_memory_dump.cc File base/trace_event/process_memory_dump.cc (right): https://codereview.chromium.org/2923123004/diff/120001/base/trace_event/process_memory_dump.cc#newcode418 base/trace_event/process_memory_dump.cc:418: // The guid of the local dump cretaed by ...
3 years, 6 months ago (2017-06-08 19:43:16 UTC) #26
dcheng
lgtm https://codereview.chromium.org/2923123004/diff/120001/base/trace_event/process_memory_dump.h File base/trace_event/process_memory_dump.h (right): https://codereview.chromium.org/2923123004/diff/120001/base/trace_event/process_memory_dump.h#newcode170 base/trace_event/process_memory_dump.h:170: // process owns the memory segment. On 2017/06/08 ...
3 years, 6 months ago (2017-06-08 20:40:52 UTC) #27
ssid
Thanks! https://codereview.chromium.org/2923123004/diff/120001/base/trace_event/process_memory_dump.h File base/trace_event/process_memory_dump.h (right): https://codereview.chromium.org/2923123004/diff/120001/base/trace_event/process_memory_dump.h#newcode170 base/trace_event/process_memory_dump.h:170: // process owns the memory segment. On 2017/06/08 ...
3 years, 6 months ago (2017-06-08 20:43:35 UTC) #31
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/2923123004/140001
3 years, 6 months ago (2017-06-09 01:20:00 UTC) #36
commit-bot: I haz the power
3 years, 6 months ago (2017-06-09 03:42:20 UTC) #39
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/93876304f62aa5f7c2354c739e5a...

Powered by Google App Engine
This is Rietveld 408576698