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

Issue 2838803003: Add a field platform_private_footprint_ to ProcessMemoryTotals. (Closed)

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

Description

Add a field platform_private_footprint_ to ProcessMemoryTotals. The field holds platform-specific data that will be used by the Memory-Infra service to compute the private memory footprint. This CL populates the field on macOS, and leaves TODOs to populate the field for other OSes. BUG=707021 Review-Url: https://codereview.chromium.org/2838803003 Cr-Commit-Position: refs/heads/master@{#467177} Committed: https://chromium.googlesource.com/chromium/src/+/c874a28819750c3da98cbc8abc8ace690bfa9e1e

Patch Set 1 #

Total comments: 4

Patch Set 2 : Comments from wez, primiano, fadi. #

Patch Set 3 : Clean up. #

Patch Set 4 : Style nits. #

Total comments: 5

Patch Set 5 : Comments from mark. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -13 lines) Patch
M base/process/process_metrics.h View 1 2 3 4 1 chunk +14 lines, -4 lines 0 comments Download
M base/process/process_metrics_mac.cc View 1 2 1 chunk +9 lines, -6 lines 0 comments Download
M base/trace_event/process_memory_totals.h View 1 2 3 2 chunks +28 lines, -0 lines 0 comments Download
M base/trace_event/process_memory_totals.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/memory_details_mac.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/tracing/common/process_metrics_memory_dump_provider.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (20 generated)
erikchen
primiano: Please review. hjd: I've added you to a TODO to fill in the field ...
3 years, 8 months ago (2017-04-25 02:44:01 UTC) #4
hjd
On 2017/04/25 02:44:01, erikchen wrote: > primiano: Please review. > hjd: I've added you to ...
3 years, 8 months ago (2017-04-25 11:18:01 UTC) #7
Primiano Tucci (use gerrit)
LGTM with minor comments https://codereview.chromium.org/2838803003/diff/1/base/process/process_metrics.h File base/process/process_metrics.h (right): https://codereview.chromium.org/2838803003/diff/1/base/process/process_metrics.h#newcode173 base/process/process_metrics.h:173: size_t GetInternalAndCompressed() const; Not an ...
3 years, 8 months ago (2017-04-25 12:43:35 UTC) #8
Wez
https://codereview.chromium.org/2838803003/diff/1/base/trace_event/process_memory_totals.h File base/trace_event/process_memory_totals.h (right): https://codereview.chromium.org/2838803003/diff/1/base/trace_event/process_memory_totals.h#newcode76 base/trace_event/process_memory_totals.h:76: uint64_t private_footprint_precursor_; As discussed on Slack: "precursor" isn't quite ...
3 years, 8 months ago (2017-04-25 17:47:19 UTC) #10
erikchen
On 2017/04/25 17:47:19, Wez wrote: > https://codereview.chromium.org/2838803003/diff/1/base/trace_event/process_memory_totals.h > File base/trace_event/process_memory_totals.h (right): > > https://codereview.chromium.org/2838803003/diff/1/base/trace_event/process_memory_totals.h#newcode76 > ...
3 years, 8 months ago (2017-04-25 17:49:00 UTC) #11
fmeawad
On 2017/04/25 17:49:00, erikchen wrote: > On 2017/04/25 17:47:19, Wez wrote: > > > https://codereview.chromium.org/2838803003/diff/1/base/trace_event/process_memory_totals.h ...
3 years, 8 months ago (2017-04-25 17:54:45 UTC) #12
Wez
OK; I would suggest either that really-raw values are passed there, with platform-specific logic in ...
3 years, 8 months ago (2017-04-25 18:05:58 UTC) #13
Primiano Tucci (use gerrit)
On 2017/04/25 18:05:58, Wez wrote: > OK; I would suggest either that really-raw values are ...
3 years, 8 months ago (2017-04-25 18:20:00 UTC) #14
erikchen
Thanks for all the feedback. I've decided that it's best for all logic to live ...
3 years, 8 months ago (2017-04-25 19:34:33 UTC) #15
Primiano Tucci (use gerrit)
Base/Trace_event still lgtm
3 years, 8 months ago (2017-04-25 19:52:56 UTC) #19
erikchen
mark: Please review.
3 years, 8 months ago (2017-04-25 20:24:14 UTC) #23
Mark Mentovai
LGTM https://codereview.chromium.org/2838803003/diff/60001/base/process/process_metrics.h File base/process/process_metrics.h (right): https://codereview.chromium.org/2838803003/diff/60001/base/process/process_metrics.h#newcode173 base/process/process_metrics.h:173: uint64_t phys_footprint = 0; Do these measure bytes ...
3 years, 8 months ago (2017-04-25 20:29:44 UTC) #25
erikchen
https://codereview.chromium.org/2838803003/diff/60001/base/process/process_metrics.h File base/process/process_metrics.h (right): https://codereview.chromium.org/2838803003/diff/60001/base/process/process_metrics.h#newcode173 base/process/process_metrics.h:173: uint64_t phys_footprint = 0; On 2017/04/25 20:29:44, Mark Mentovai ...
3 years, 8 months ago (2017-04-25 20:49:46 UTC) #26
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/2838803003/80001
3 years, 8 months ago (2017-04-25 20:50:22 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/420099)
3 years, 8 months ago (2017-04-25 20:58:48 UTC) #31
erikchen
sky: Please review chrome/
3 years, 8 months ago (2017-04-25 22:08:51 UTC) #33
sky
LGTM
3 years, 8 months ago (2017-04-25 22:56:14 UTC) #34
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/2838803003/80001
3 years, 8 months ago (2017-04-25 22:56:57 UTC) #36
commit-bot: I haz the power
3 years, 8 months ago (2017-04-26 00:22:54 UTC) #39
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/c874a28819750c3da98cbc8abc8a...

Powered by Google App Engine
This is Rietveld 408576698