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

Issue 1306843006: [tracing] Fix MemoryDumpManager periodic scheduler and improve tests (Closed)

Created:
5 years, 3 months ago by Primiano Tucci (use gerrit)
Modified:
5 years, 3 months ago
Reviewers:
ssid, petrcermak
CC:
chromium-reviews, tracing+reviews_chromium.org, wfh+watch_chromium.org, Ruud van Asseldonk
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[tracing] Fix MemoryDumpManager periodic scheduler and improve tests This a cleanup CL in preparation of next changes to memory-infra. - Add much more coverage to the TraceConfig-related tests as this is very critical to avoid regressions in either the chrome://tracing UI and telemetry w.r.t. periodic dumps. - Refactor the tests to use sane and readable in-line expectations instead of the awkward back and forths between test fixtures and MockDumpProvvider. - Minor fix in the loogic which schedules periodic dumps in the MemoryDumpManager. If ligh_period=1ms and heavy_period=4ms, the sequence sholud be HLLLHLLL, not HLLLLHLLLL as it was before this change. - Normalize the "virtual_size" column in the malloc dump provider. BUG=518823, 499731 Committed: https://crrev.com/49b700716fb5d9a306237df1ed00e162d89b3a4c Cr-Commit-Position: refs/heads/master@{#347964}

Patch Set 1 #

Total comments: 38

Patch Set 2 : Re petrcermak review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+285 lines, -252 lines) Patch
M base/trace_event/malloc_dump_provider.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/trace_event/memory_dump_manager.h View 3 chunks +4 lines, -5 lines 0 comments Download
M base/trace_event/memory_dump_manager.cc View 4 chunks +22 lines, -14 lines 0 comments Download
M base/trace_event/memory_dump_manager_unittest.cc View 1 23 chunks +258 lines, -232 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
Primiano Tucci (use gerrit)
Guys I'd need a review on this. Lot of refactoring and cleanup going on. Kudos ...
5 years, 3 months ago (2015-09-09 11:04:18 UTC) #2
petrcermak
Looks good overall. Here's a couple of comments. Thanks, Petr https://codereview.chromium.org/1306843006/diff/1/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/1306843006/diff/1/base/trace_event/memory_dump_manager.cc#newcode126 ...
5 years, 3 months ago (2015-09-09 11:48:30 UTC) #3
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1306843006/diff/1/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/1306843006/diff/1/base/trace_event/memory_dump_manager.cc#newcode126 base/trace_event/memory_dump_manager.cc:126: if (!skip_core_dumpers_auto_registration_for_testing_) { On 2015/09/09 11:48:29, petrcermak wrote: > ...
5 years, 3 months ago (2015-09-09 13:28:44 UTC) #4
petrcermak
LGTM. Thanks and sorry for the delay, Petr
5 years, 3 months ago (2015-09-09 17:22:25 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1306843006/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1306843006/20001
5 years, 3 months ago (2015-09-09 17:23:45 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 3 months ago (2015-09-09 18:33:38 UTC) #8
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/49b700716fb5d9a306237df1ed00e162d89b3a4c Cr-Commit-Position: refs/heads/master@{#347964}
5 years, 3 months ago (2015-09-09 18:34:29 UTC) #9
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:01:24 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/49b700716fb5d9a306237df1ed00e162d89b3a4c
Cr-Commit-Position: refs/heads/master@{#347964}

Powered by Google App Engine
This is Rietveld 408576698