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

Issue 2568313004: [memory-infra] Implement PollFastMemoryTotal in ProcessMetricsMemoryDumpProvider. (Closed)

Created:
4 years ago by ssid
Modified:
4 years ago
CC:
chromium-reviews, tracing+reviews_chromium.org, wfh+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[memory-infra] Implement PollFastMemoryTotal in ProcessMetricsMemoryDumpProvider. For fast polling the dump provider keeps the /proc/<pid>/statm files open during the tracing session. BUG=607533 Committed: https://crrev.com/3583cfe73e8f0ac811ad2e978fcd1cfaebce6ba6 Cr-Commit-Position: refs/heads/master@{#439405}

Patch Set 1 #

Total comments: 25

Patch Set 2 : Fixes. #

Patch Set 3 : Remove memset. #

Total comments: 8

Patch Set 4 : Fixes. #

Total comments: 8

Patch Set 5 : ScopedFD #

Patch Set 6 : nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -9 lines) Patch
M components/tracing/common/process_metrics_memory_dump_provider.h View 1 2 3 4 3 chunks +8 lines, -0 lines 0 comments Download
M components/tracing/common/process_metrics_memory_dump_provider.cc View 1 2 3 4 5 5 chunks +53 lines, -2 lines 0 comments Download
M components/tracing/common/process_metrics_memory_dump_provider_unittest.cc View 1 2 3 4 5 chunks +42 lines, -7 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 52 (39 generated)
ssid
ptal, this is the 2nd part of the split.
4 years ago (2016-12-12 23:32:36 UTC) #2
Primiano Tucci (use gerrit)
Thanks a lot for splitting, way easier to review. Just minor comments. https://codereview.chromium.org/2568313004/diff/1/components/tracing/common/process_metrics_memory_dump_provider.cc File components/tracing/common/process_metrics_memory_dump_provider.cc ...
4 years ago (2016-12-13 20:02:39 UTC) #7
ssid
fixed cl, ptal. Thanks https://codereview.chromium.org/2568313004/diff/1/components/tracing/common/process_metrics_memory_dump_provider.cc File components/tracing/common/process_metrics_memory_dump_provider.cc (right): https://codereview.chromium.org/2568313004/diff/1/components/tracing/common/process_metrics_memory_dump_provider.cc#newcode35 components/tracing/common/process_metrics_memory_dump_provider.cc:35: const int kInvalidFD = -1; ...
4 years ago (2016-12-14 02:59:33 UTC) #15
ssid
https://codereview.chromium.org/2568313004/diff/1/components/tracing/common/process_metrics_memory_dump_provider_unittest.cc File components/tracing/common/process_metrics_memory_dump_provider_unittest.cc (right): https://codereview.chromium.org/2568313004/diff/1/components/tracing/common/process_metrics_memory_dump_provider_unittest.cc#newcode242 components/tracing/common/process_metrics_memory_dump_provider_unittest.cc:242: for (int i = 0; i < 4; i++) ...
4 years ago (2016-12-14 06:18:59 UTC) #23
Primiano Tucci (use gerrit)
> Release builds do not make the memory resident even after memset. I have to ...
4 years ago (2016-12-15 15:00:02 UTC) #26
ssid
On 2016/12/15 15:00:02, Primiano Tucci wrote: > > Release builds do not make the memory ...
4 years ago (2016-12-16 03:16:41 UTC) #27
Primiano Tucci (use gerrit)
LGTM with some final comments (sorry I realized about ScopedFD only now). On 2016/12/16 03:16:41, ...
4 years ago (2016-12-16 11:50:40 UTC) #28
ssid
Fixed. thanks https://codereview.chromium.org/2568313004/diff/140001/components/tracing/common/process_metrics_memory_dump_provider.cc File components/tracing/common/process_metrics_memory_dump_provider.cc (right): https://codereview.chromium.org/2568313004/diff/140001/components/tracing/common/process_metrics_memory_dump_provider.cc#newcode363 components/tracing/common/process_metrics_memory_dump_provider.cc:363: *memory_total = rss_pages * base::GetPageSize(); On 2016/12/16 ...
4 years ago (2016-12-16 19:48:44 UTC) #30
Primiano Tucci (use gerrit)
LGTM There is just some small inconsistency with the fact that sometime you use <0 ...
4 years ago (2016-12-16 20:23:59 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/2568313004/200001
4 years ago (2016-12-19 03:09:46 UTC) #42
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/2568313004/220001
4 years ago (2016-12-19 03:15:57 UTC) #47
commit-bot: I haz the power
Committed patchset #6 (id:220001)
4 years ago (2016-12-19 04:12:27 UTC) #50
commit-bot: I haz the power
4 years ago (2016-12-19 04:16:49 UTC) #52
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/3583cfe73e8f0ac811ad2e978fcd1cfaebce6ba6
Cr-Commit-Position: refs/heads/master@{#439405}

Powered by Google App Engine
This is Rietveld 408576698