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

Issue 2760253005: memory-infra: Fill the memory dump callback result (1/2) (Closed)

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

Description

memory-infra: Fill the memory dump callback result (1/2) Fill in the part of the memory dump result struct that applies to Chrome's veiw of itself when finalizing a memory dump. This requires a tweak to memory_allocator_dump to keep track of the 'size' field. BUG=703184 Review-Url: https://codereview.chromium.org/2760253005 Cr-Commit-Position: refs/heads/master@{#459506} Committed: https://chromium.googlesource.com/chromium/src/+/adbce8ba658534687a82e731ef138678f116f3a2

Patch Set 1 #

Patch Set 2 : tweak a few comments #

Total comments: 18

Patch Set 3 : update for comments #

Total comments: 8

Patch Set 4 : update for comments #

Patch Set 5 : fix typo #

Total comments: 8

Patch Set 6 : fix nits #

Patch Set 7 : rebase for struct change #

Total comments: 3

Patch Set 8 : fill struct only in detailed mode #

Total comments: 6

Patch Set 9 : fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -1 line) Patch
M base/trace_event/memory_allocator_dump.h View 1 2 3 4 5 6 7 8 2 chunks +11 lines, -0 lines 0 comments Download
M base/trace_event/memory_allocator_dump.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -1 line 0 comments Download
M base/trace_event/memory_allocator_dump_unittest.cc View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M base/trace_event/memory_dump_manager.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M base/trace_event/memory_dump_manager.cc View 1 2 3 4 5 6 7 4 chunks +42 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 29 (10 generated)
hjd
ptal, thanks!
3 years, 9 months ago (2017-03-22 11:15:16 UTC) #2
Primiano Tucci (use gerrit)
Thanks makes great sense, just minor comments. A note about the CL title. I usually ...
3 years, 9 months ago (2017-03-22 17:19:52 UTC) #3
hjd
https://codereview.chromium.org/2760253005/diff/20001/base/trace_event/memory_allocator_dump.cc File base/trace_event/memory_allocator_dump.cc (right): https://codereview.chromium.org/2760253005/diff/20001/base/trace_event/memory_allocator_dump.cc#newcode67 base/trace_event/memory_allocator_dump.cc:67: if (strcmp(kNameSize, name) == 0 && strcmp(kUnitsBytes, units) == ...
3 years, 9 months ago (2017-03-22 19:24:21 UTC) #6
ssid
https://codereview.chromium.org/2760253005/diff/40001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/2760253005/diff/40001/base/trace_event/memory_dump_manager.cc#newcode732 base/trace_event/memory_dump_manager.cc:732: DCHECK(name.find("/__") == name.npos); So, this is supposed to work ...
3 years, 9 months ago (2017-03-23 03:11:38 UTC) #8
Primiano Tucci (use gerrit)
Sorry for the back and forth, ssid made some good points. In summary I think ...
3 years, 9 months ago (2017-03-23 12:27:59 UTC) #9
hjd
https://codereview.chromium.org/2760253005/diff/40001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/2760253005/diff/40001/base/trace_event/memory_dump_manager.cc#newcode732 base/trace_event/memory_dump_manager.cc:732: DCHECK(name.find("/__") == name.npos); On 2017/03/23 03:11:38, ssid wrote: > ...
3 years, 9 months ago (2017-03-23 14:50:31 UTC) #10
hjd
On 2017/03/23 14:50:31, hjd wrote: > https://codereview.chromium.org/2760253005/diff/40001/base/trace_event/memory_dump_manager.cc > File base/trace_event/memory_dump_manager.cc (right): > > https://codereview.chromium.org/2760253005/diff/40001/base/trace_event/memory_dump_manager.cc#newcode732 > ...
3 years, 9 months ago (2017-03-23 14:53:27 UTC) #11
Primiano Tucci (use gerrit)
thanks, LGTM with minor nits. Let's wait for ssid reply though to check that the ...
3 years, 9 months ago (2017-03-23 15:50:49 UTC) #12
hjd
https://codereview.chromium.org/2760253005/diff/80001/base/trace_event/memory_allocator_dump.cc File base/trace_event/memory_allocator_dump.cc (right): https://codereview.chromium.org/2760253005/diff/80001/base/trace_event/memory_allocator_dump.cc#newcode67 base/trace_event/memory_allocator_dump.cc:67: if (strcmp(kNameSize, name) == 0) { On 2017/03/23 15:50:49, ...
3 years, 9 months ago (2017-03-23 16:16:39 UTC) #13
ssid
Sorry my last comment was with only BACKGROUND mode in mind. Now that you removed ...
3 years, 9 months ago (2017-03-23 18:32:34 UTC) #14
Primiano Tucci (use gerrit)
https://codereview.chromium.org/2760253005/diff/120001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/2760253005/diff/120001/base/trace_event/memory_dump_manager.cc#newcode780 base/trace_event/memory_dump_manager.cc:780: if (pid == kNullProcessId) { On 2017/03/23 18:32:34, ssid ...
3 years, 9 months ago (2017-03-23 19:01:26 UTC) #15
hjd
Updated, thanks! https://codereview.chromium.org/2760253005/diff/120001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/2760253005/diff/120001/base/trace_event/memory_dump_manager.cc#newcode780 base/trace_event/memory_dump_manager.cc:780: if (pid == kNullProcessId) { On 2017/03/23 ...
3 years, 9 months ago (2017-03-24 11:28:37 UTC) #16
Primiano Tucci (use gerrit)
lgtm with some final nits https://codereview.chromium.org/2760253005/diff/140001/base/trace_event/memory_allocator_dump.h File base/trace_event/memory_allocator_dump.h (right): https://codereview.chromium.org/2760253005/diff/140001/base/trace_event/memory_allocator_dump.h#newcode103 base/trace_event/memory_allocator_dump.h:103: uint64_t GetSize(); ups sorry ...
3 years, 9 months ago (2017-03-24 11:39:22 UTC) #17
Primiano Tucci (use gerrit)
https://codereview.chromium.org/2760253005/diff/140001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/2760253005/diff/140001/base/trace_event/memory_dump_manager.cc#newcode724 base/trace_event/memory_dump_manager.cc:724: uint32_t MemoryDumpManager::GetDumpsSumKb(const std::string& pattern, ah, also just realized that ...
3 years, 9 months ago (2017-03-24 11:41:27 UTC) #18
hjd
https://codereview.chromium.org/2760253005/diff/140001/base/trace_event/memory_allocator_dump.h File base/trace_event/memory_allocator_dump.h (right): https://codereview.chromium.org/2760253005/diff/140001/base/trace_event/memory_allocator_dump.h#newcode103 base/trace_event/memory_allocator_dump.h:103: uint64_t GetSize(); On 2017/03/24 11:39:21, Primiano Tucci wrote: > ...
3 years, 9 months ago (2017-03-24 11:57:17 UTC) #19
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/2760253005/160001
3 years, 9 months ago (2017-03-24 14:34:42 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/390720)
3 years, 9 months ago (2017-03-24 16:46:54 UTC) #24
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/2760253005/160001
3 years, 9 months ago (2017-03-24 16:56:34 UTC) #26
commit-bot: I haz the power
3 years, 9 months ago (2017-03-24 19:09:14 UTC) #29
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/adbce8ba658534687a82e731ef13...

Powered by Google App Engine
This is Rietveld 408576698