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

Issue 2537363003: [memory-infra] Add support for polling memory totals in MemoryDumpManager (Closed)

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

Description

[memory-infra] Add support for polling memory totals in MemoryDumpManager This adds new method in MemoryDumpProvider interface PollFastMemoryTotal which is used for polling memory totals in process. The dump provider has to enable this feature while registration. For Simplicity of polling logic the dump providers supporting polling must not have task runner affinity. Polling will be done on dump thread. BUG=607533 Committed: https://crrev.com/4460b9b6393448adc011207ae63380a70ddba369 Cr-Commit-Position: refs/heads/master@{#439390}

Patch Set 1 #

Patch Set 2 : nit. #

Patch Set 3 : Fixes. #

Patch Set 4 : fix test. #

Total comments: 20

Patch Set 5 : Fixes. #

Total comments: 12

Patch Set 6 : Fix #

Patch Set 7 : nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+185 lines, -3 lines) Patch
M base/trace_event/memory_dump_manager.h View 1 2 3 4 5 6 3 chunks +20 lines, -1 line 0 comments Download
M base/trace_event/memory_dump_manager.cc View 1 2 3 4 5 6 8 chunks +64 lines, -0 lines 0 comments Download
M base/trace_event/memory_dump_manager_unittest.cc View 1 2 3 4 5 5 chunks +72 lines, -0 lines 0 comments Download
M base/trace_event/memory_dump_provider.h View 1 2 3 4 5 3 chunks +19 lines, -1 line 0 comments Download
M base/trace_event/memory_dump_session_state.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M base/trace_event/memory_dump_session_state.cc View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 61 (47 generated)
ssid
ptal, thanks. This cl only adds GetFastMemoryTotals api to MDM. This is not yet used.
4 years ago (2016-12-02 02:09:37 UTC) #19
Primiano Tucci (use gerrit)
> ptal, thanks. This cl only adds GetFastMemoryTotals api to MDM. This is not yet ...
4 years ago (2016-12-08 16:16:22 UTC) #22
ssid
On 2016/12/08 16:16:22, Primiano Tucci wrote: > > ptal, thanks. This cl only adds GetFastMemoryTotals ...
4 years ago (2016-12-08 18:58:12 UTC) #23
Primiano Tucci (use gerrit)
On 2016/12/08 18:58:12, ssid wrote: > On 2016/12/08 16:16:22, Primiano Tucci wrote: > > > ...
4 years ago (2016-12-09 16:35:20 UTC) #24
Primiano Tucci (use gerrit)
Ah also BUG=607533 plz :)
4 years ago (2016-12-09 16:35:53 UTC) #25
ssid
Thanks for explanation, made changes as suggested.
4 years ago (2016-12-12 22:26:44 UTC) #29
Primiano Tucci (use gerrit)
The threading logic makes sense to me. Some minor comment here and there. Didn't have ...
4 years ago (2016-12-15 16:45:01 UTC) #41
ssid
made changes, thanks! https://codereview.chromium.org/2537363003/diff/300001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/2537363003/diff/300001/base/trace_event/memory_dump_manager.cc#newcode288 base/trace_event/memory_dump_manager.cc:288: if (options.is_fast_polling_supported && dump_thread_) { On ...
4 years ago (2016-12-16 02:31:54 UTC) #42
Primiano Tucci (use gerrit)
Ok final comments. Had a second though on the all session state story, sorry for ...
4 years ago (2016-12-16 12:34:40 UTC) #47
ssid
Fixed, thanks! https://codereview.chromium.org/2537363003/diff/320001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/2537363003/diff/320001/base/trace_event/memory_dump_manager.cc#newcode358 base/trace_event/memory_dump_manager.cc:358: "bound and hence destroyed using " On ...
4 years ago (2016-12-16 18:58:22 UTC) #48
Primiano Tucci (use gerrit)
LGTM https://codereview.chromium.org/2537363003/diff/320001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/2537363003/diff/320001/base/trace_event/memory_dump_manager.cc#newcode799 base/trace_event/memory_dump_manager.cc:799: if (!subtle::NoBarrier_Load(&memory_tracing_enabled_)) On 2016/12/16 18:58:22, ssid wrote: > ...
4 years ago (2016-12-16 20:29:10 UTC) #49
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/2537363003/360001
4 years ago (2016-12-19 00:48:03 UTC) #56
commit-bot: I haz the power
Committed patchset #7 (id:360001)
4 years ago (2016-12-19 00:52:45 UTC) #59
commit-bot: I haz the power
4 years ago (2016-12-19 00:56:27 UTC) #61
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/4460b9b6393448adc011207ae63380a70ddba369
Cr-Commit-Position: refs/heads/master@{#439390}

Powered by Google App Engine
This is Rietveld 408576698