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

Issue 1313613002: [tracing] MemoryDumpManager uses TraceConfig to set the periodic dump timers (Closed)

Created:
5 years, 4 months ago by ssid
Modified:
5 years, 3 months ago
CC:
chromium-reviews, tracing+reviews_chromium.org, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@test
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[tracing] MemoryDumpManager uses TraceConfig to set the periodic dump timers The memory dump trigger config was added to TraceConfig in crrev.com/1306753005. This CL updates the MemoryDumpManager to use the TraceConfig to set the periodic timers for the memory dumps. BUG=513692 Committed: https://crrev.com/08adbe40a5533b1aecf565af7b0ed964896de9ae Cr-Commit-Position: refs/heads/master@{#347570}

Patch Set 1 #

Patch Set 2 : Rebase. #

Patch Set 3 : rebase. #

Patch Set 4 : rebsae. #

Total comments: 13

Patch Set 5 : Fixes. #

Total comments: 26

Patch Set 6 : Fixes. #

Patch Set 7 : Nits. #

Patch Set 8 : Nits. #

Total comments: 8

Patch Set 9 : Fix the rate. #

Patch Set 10 : Using sequence. #

Total comments: 8

Patch Set 11 : Nits. #

Patch Set 12 : Nit. #

Patch Set 13 : Set delegate once. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -41 lines) Patch
M base/trace_event/memory_dump_manager.cc View 1 2 3 4 5 6 7 8 2 chunks +48 lines, -18 lines 0 comments Download
M base/trace_event/memory_dump_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 23 chunks +102 lines, -23 lines 0 comments Download

Messages

Total messages: 24 (6 generated)
ssid
PTAL, thanks.
5 years, 4 months ago (2015-08-24 15:58:37 UTC) #2
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1313613002/diff/50001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/1313613002/diff/50001/base/trace_event/memory_dump_manager.cc#newcode56 base/trace_event/memory_dump_manager.cc:56: for (const TraceConfig::MemoryDumpTriggerConfig& config : All this seems way ...
5 years, 3 months ago (2015-08-26 10:25:07 UTC) #3
ssid
Made changes, PTAL. https://codereview.chromium.org/1313613002/diff/50001/base/trace_event/memory_dump_manager_unittest.cc File base/trace_event/memory_dump_manager_unittest.cc (right): https://codereview.chromium.org/1313613002/diff/50001/base/trace_event/memory_dump_manager_unittest.cc#newcode645 base/trace_event/memory_dump_manager_unittest.cc:645: } On 2015/08/26 10:25:07, Primiano Tucci ...
5 years, 3 months ago (2015-08-28 12:34:48 UTC) #4
Primiano Tucci (use gerrit)
I am super sorry for the delay. Looks great, just few comments. Can we just ...
5 years, 3 months ago (2015-09-03 08:39:51 UTC) #5
ssid
PTAL, Thanks https://codereview.chromium.org/1313613002/diff/70001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/1313613002/diff/70001/base/trace_event/memory_dump_manager.cc#newcode55 base/trace_event/memory_dump_manager.cc:55: if (++g_periodic_dumps_count == g_heavy_dumps_rate) On 2015/09/03 08:39:51, ...
5 years, 3 months ago (2015-09-03 16:30:19 UTC) #6
Sami
https://codereview.chromium.org/1313613002/diff/70001/base/trace_event/memory_dump_manager_unittest.cc File base/trace_event/memory_dump_manager_unittest.cc (right): https://codereview.chromium.org/1313613002/diff/70001/base/trace_event/memory_dump_manager_unittest.cc#newcode40 base/trace_event/memory_dump_manager_unittest.cc:40: "\"periodic_interval_ms\":1" On 2015/09/03 16:30:18, ssid wrote: > On 2015/09/03 ...
5 years, 3 months ago (2015-09-03 16:41:52 UTC) #8
Primiano Tucci (use gerrit)
> Right, the idea was that we should try to keep unit test execution time ...
5 years, 3 months ago (2015-09-03 22:44:14 UTC) #9
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1313613002/diff/130001/base/trace_event/memory_dump_manager_unittest.cc File base/trace_event/memory_dump_manager_unittest.cc (right): https://codereview.chromium.org/1313613002/diff/130001/base/trace_event/memory_dump_manager_unittest.cc#newcode48 base/trace_event/memory_dump_manager_unittest.cc:48: : public MemoryDumpManagerDelegateForTesting { Ah also why doesn't this ...
5 years, 3 months ago (2015-09-03 22:44:51 UTC) #10
ssid
PTAL. https://codereview.chromium.org/1313613002/diff/130001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/1313613002/diff/130001/base/trace_event/memory_dump_manager.cc#newcode52 base/trace_event/memory_dump_manager.cc:52: g_periodic_dumps_count == 0 ? MemoryDumpArgs::LevelOfDetail::HIGH On 2015/09/03 22:44:13, ...
5 years, 3 months ago (2015-09-04 10:43:47 UTC) #11
Primiano Tucci (use gerrit)
> No, I cannot do that. I can define only one expect_call for a function. ...
5 years, 3 months ago (2015-09-04 11:09:44 UTC) #12
ssid
Thanks made changes.
5 years, 3 months ago (2015-09-04 14:10:55 UTC) #13
Primiano Tucci (use gerrit)
LGTM with some final minor comments! Many thanks for the patience. https://codereview.chromium.org/1313613002/diff/170001/base/trace_event/memory_dump_manager_unittest.cc File base/trace_event/memory_dump_manager_unittest.cc (right): ...
5 years, 3 months ago (2015-09-04 14:25:29 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1313613002/210001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1313613002/210001
5 years, 3 months ago (2015-09-04 17:28:20 UTC) #16
ssid
Done thanks. https://codereview.chromium.org/1313613002/diff/170001/base/trace_event/memory_dump_manager_unittest.cc File base/trace_event/memory_dump_manager_unittest.cc (right): https://codereview.chromium.org/1313613002/diff/170001/base/trace_event/memory_dump_manager_unittest.cc#newcode50 base/trace_event/memory_dump_manager_unittest.cc:50: ~MemoryDumpManagerDelegateForPeriodicDumpTest() override {} On 2015/09/04 14:25:29, Primiano ...
5 years, 3 months ago (2015-09-04 17:28:22 UTC) #17
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/78353)
5 years, 3 months ago (2015-09-04 17:52:38 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1313613002/230001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1313613002/230001
5 years, 3 months ago (2015-09-05 13:04:56 UTC) #22
commit-bot: I haz the power
Committed patchset #13 (id:230001)
5 years, 3 months ago (2015-09-05 13:09:00 UTC) #23
commit-bot: I haz the power
5 years, 3 months ago (2015-09-05 13:09:44 UTC) #24
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/08adbe40a5533b1aecf565af7b0ed964896de9ae
Cr-Commit-Position: refs/heads/master@{#347570}

Powered by Google App Engine
This is Rietveld 408576698