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

Issue 934323002: [tracing] Add a dump provider to dump process memory totals. (Closed)

Created:
5 years, 10 months ago by Primiano Tucci (use gerrit)
Modified:
5 years, 10 months ago
Reviewers:
danakj, dsinclair, nduca, Sami
CC:
chromium-reviews, erikwright+watch_chromium.org, Sami, tracing+reviews_chromium.org, wfh+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 a dump provider to dump process memory totals. This CL introduces a dump provider which is able to capture the process Resident Set Size and the corresponding unittest. BUG=442731, 458295 Committed: https://crrev.com/c96eca7cc1b3a9c6de89b4928637dfa9412e74b5 Cr-Commit-Position: refs/heads/master@{#317336}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Switch to AsValueInto pattern and remove unnecessary allocations #

Total comments: 5

Patch Set 3 : skyostil@ nits #

Patch Set 4 : Fix test (mock rss) #

Patch Set 5 : fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -27 lines) Patch
M base/BUILD.gn View 2 chunks +5 lines, -0 lines 0 comments Download
M base/base.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M base/base.gypi View 1 chunk +4 lines, -0 lines 0 comments Download
M base/trace_event/memory_dump_manager.cc View 1 2 3 4 2 chunks +5 lines, -5 lines 0 comments Download
M base/trace_event/process_memory_dump.h View 1 2 1 chunk +19 lines, -12 lines 0 comments Download
M base/trace_event/process_memory_dump.cc View 1 1 chunk +10 lines, -10 lines 0 comments Download
A base/trace_event/process_memory_totals.h View 1 1 chunk +36 lines, -0 lines 0 comments Download
A base/trace_event/process_memory_totals.cc View 1 1 chunk +17 lines, -0 lines 0 comments Download
A base/trace_event/process_memory_totals_dump_provider.h View 1 2 3 1 chunk +44 lines, -0 lines 0 comments Download
A base/trace_event/process_memory_totals_dump_provider.cc View 1 2 3 1 chunk +53 lines, -0 lines 0 comments Download
A base/trace_event/process_memory_totals_dump_provider_unittest.cc View 1 2 3 1 chunk +43 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (15 generated)
Primiano Tucci (use gerrit)
5 years, 10 months ago (2015-02-18 18:24:50 UTC) #4
dsinclair
https://codereview.chromium.org/934323002/diff/40001/base/trace_event/process_memory_totals_dump_provider.cc File base/trace_event/process_memory_totals_dump_provider.cc (right): https://codereview.chromium.org/934323002/diff/40001/base/trace_event/process_memory_totals_dump_provider.cc#newcode33 base/trace_event/process_memory_totals_dump_provider.cc:33: const uint64 rss_bytes = process_metrics_->GetWorkingSetSize(); So, do the process_metrics_ ...
5 years, 10 months ago (2015-02-18 18:42:31 UTC) #5
Primiano Tucci (use gerrit)
https://codereview.chromium.org/934323002/diff/40001/base/trace_event/process_memory_totals_dump_provider.cc File base/trace_event/process_memory_totals_dump_provider.cc (right): https://codereview.chromium.org/934323002/diff/40001/base/trace_event/process_memory_totals_dump_provider.cc#newcode33 base/trace_event/process_memory_totals_dump_provider.cc:33: const uint64 rss_bytes = process_metrics_->GetWorkingSetSize(); On 2015/02/18 18:42:30, dsinclair ...
5 years, 10 months ago (2015-02-18 18:48:00 UTC) #6
dsinclair
lgtm
5 years, 10 months ago (2015-02-18 18:51:49 UTC) #7
nduca
lgtm assuming the AsValueInto part happens https://codereview.chromium.org/934323002/diff/40001/base/trace_event/process_memory_totals.h File base/trace_event/process_memory_totals.h (right): https://codereview.chromium.org/934323002/diff/40001/base/trace_event/process_memory_totals.h#newcode24 base/trace_event/process_memory_totals.h:24: scoped_ptr<Value> AsValue() const; ...
5 years, 10 months ago (2015-02-18 20:10:52 UTC) #8
Primiano Tucci (use gerrit)
+skyostil for the AsValueInto migration
5 years, 10 months ago (2015-02-19 11:50:28 UTC) #15
Sami
AsValueInto pattern lgtm. https://codereview.chromium.org/934323002/diff/140001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/934323002/diff/140001/base/trace_event/memory_dump_manager.cc#newcode103 base/trace_event/memory_dump_manager.cc:103: scoped_ptr<ProcessMemoryDump> pmd(new ProcessMemoryDump()); Is this cast ...
5 years, 10 months ago (2015-02-19 12:07:05 UTC) #16
Primiano Tucci (use gerrit)
https://codereview.chromium.org/934323002/diff/40001/base/trace_event/process_memory_totals.h File base/trace_event/process_memory_totals.h (right): https://codereview.chromium.org/934323002/diff/40001/base/trace_event/process_memory_totals.h#newcode24 base/trace_event/process_memory_totals.h:24: scoped_ptr<Value> AsValue() const; On 2015/02/18 20:10:52, nduca wrote: > ...
5 years, 10 months ago (2015-02-19 12:18:13 UTC) #18
Primiano Tucci (use gerrit)
+danakj for gyp/gn build files OWNERS stamp.
5 years, 10 months ago (2015-02-19 12:21:25 UTC) #22
Sami
Still lgtm. https://codereview.chromium.org/934323002/diff/140001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/934323002/diff/140001/base/trace_event/memory_dump_manager.cc#newcode103 base/trace_event/memory_dump_manager.cc:103: scoped_ptr<ProcessMemoryDump> pmd(new ProcessMemoryDump()); On 2015/02/19 12:18:12, Primiano ...
5 years, 10 months ago (2015-02-19 16:16:36 UTC) #23
danakj
lgtm
5 years, 10 months ago (2015-02-19 16:50:37 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/934323002/200001
5 years, 10 months ago (2015-02-20 15:30:53 UTC) #27
commit-bot: I haz the power
Committed patchset #5 (id:200001)
5 years, 10 months ago (2015-02-20 16:41:23 UTC) #28
commit-bot: I haz the power
5 years, 10 months ago (2015-02-20 16:42:08 UTC) #29
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/c96eca7cc1b3a9c6de89b4928637dfa9412e74b5
Cr-Commit-Position: refs/heads/master@{#317336}

Powered by Google App Engine
This is Rietveld 408576698