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

Issue 1152743003: Making the MemoryDumpManager less aggressive in disabling dump providers on failures. (Closed)

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

Description

Making the MemoryDumpManager less aggressive in disabling dump providers on failures. The dump providers are disabled after it fails for once. But in some cases the dump failure doesn't mean that it will fail permanently. This CL adds a failure count to the dump provider and disables it only if it fails consecutively for n times. BUG=490783 Committed: https://crrev.com/4656df694b1754047d53f301eea7a5a8b3cd0052 Cr-Commit-Position: refs/heads/master@{#335119}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Fixing test and renames #

Total comments: 4

Patch Set 3 : Addresing comments. #

Patch Set 4 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -16 lines) Patch
M base/trace_event/memory_dump_manager.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M base/trace_event/memory_dump_manager.cc View 1 2 3 4 chunks +18 lines, -6 lines 0 comments Download
M base/trace_event/memory_dump_manager_unittest.cc View 1 2 2 chunks +13 lines, -10 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
ssid
5 years, 6 months ago (2015-06-02 12:39:39 UTC) #2
Primiano Tucci (use gerrit)
Don't you have also to update the unittest that checks the disabling logic? How come ...
5 years, 6 months ago (2015-06-10 23:37:07 UTC) #3
ssid
Made changes, PTAL at the test. https://codereview.chromium.org/1152743003/diff/1/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/1152743003/diff/1/base/trace_event/memory_dump_manager.cc#newcode320 base/trace_event/memory_dump_manager.cc:320: const int kMaxFailuresCount ...
5 years, 6 months ago (2015-06-12 14:37:00 UTC) #4
Primiano Tucci (use gerrit)
LGTM with 1 change request. https://codereview.chromium.org/1152743003/diff/20001/base/trace_event/memory_dump_manager_unittest.cc File base/trace_event/memory_dump_manager_unittest.cc (right): https://codereview.chromium.org/1152743003/diff/20001/base/trace_event/memory_dump_manager_unittest.cc#newcode263 base/trace_event/memory_dump_manager_unittest.cc:263: const int kFailureCount = ...
5 years, 6 months ago (2015-06-16 11:05:47 UTC) #5
picksi
https://codereview.chromium.org/1152743003/diff/20001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/1152743003/diff/20001/base/trace_event/memory_dump_manager.cc#newcode335 base/trace_event/memory_dump_manager.cc:335: } nit: Removing the '!' and swapping the if/else ...
5 years, 6 months ago (2015-06-16 12:56:44 UTC) #7
ssid
Thanks made changes. https://codereview.chromium.org/1152743003/diff/20001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/1152743003/diff/20001/base/trace_event/memory_dump_manager.cc#newcode335 base/trace_event/memory_dump_manager.cc:335: } On 2015/06/16 12:56:44, picksi wrote: ...
5 years, 6 months ago (2015-06-16 14:52:36 UTC) #8
picksi
lgtm!
5 years, 6 months ago (2015-06-16 16:01:38 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1152743003/60001
5 years, 6 months ago (2015-06-18 19:46:30 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 6 months ago (2015-06-18 21:10:30 UTC) #13
commit-bot: I haz the power
5 years, 6 months ago (2015-06-18 21:11:20 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/4656df694b1754047d53f301eea7a5a8b3cd0052
Cr-Commit-Position: refs/heads/master@{#335119}

Powered by Google App Engine
This is Rietveld 408576698