|
|
Description[memory-infra] Add unittests for peak detection and NotifyDumpTriggered
BUG=607533
Patch Set 1 #Patch Set 2 : . #
Total comments: 6
Patch Set 3 : Remove unused include #Patch Set 4 : get back include #Patch Set 5 : get back include #
Messages
Total messages: 46 (26 generated)
Patchset #1 (id:1) has been deleted
Patchset #1 (id:20001) has been deleted
The CQ bit was checked by ssid@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
ssid@chromium.org changed reviewers: + primiano@chromium.org
Sorry for doing this late. I just realized test coverage isn't enough.
On 2017/03/11 00:26:58, ssid wrote: > Sorry for doing this late. I just realized test coverage isn't enough. The rest of the methods are covered by MemoryDumpManagerTest(s) and cannot be written without integration with MDM instance. Do you think I should move these tests to memory_dump_manager_unittest as well?
LGTM > Do you think I should move these tests to memory_dump_manager_unittest as well? Whatever you prefer really
ssid@chromium.org changed reviewers: + dcheng@chromium.org
+dcheng for one base/BUILD.gn file addition. ptal thanks!
rs lgtm https://codereview.chromium.org/2743663005/diff/60001/base/trace_event/memory... File base/trace_event/memory_dump_scheduler_unittest.cc (right): https://codereview.chromium.org/2743663005/diff/60001/base/trace_event/memory... base/trace_event/memory_dump_scheduler_unittest.cc:9: #include "base/single_thread_task_runner.h" Seems unused. https://codereview.chromium.org/2743663005/diff/60001/base/trace_event/memory... base/trace_event/memory_dump_scheduler_unittest.cc:43: return mds_->ShouldTriggerDump(total); FWIW, this doesn't seem that useful as a helper (since mds_ itself is protected)
Thanks. comments inline. https://codereview.chromium.org/2743663005/diff/60001/base/trace_event/memory... File base/trace_event/memory_dump_scheduler_unittest.cc (right): https://codereview.chromium.org/2743663005/diff/60001/base/trace_event/memory... base/trace_event/memory_dump_scheduler_unittest.cc:9: #include "base/single_thread_task_runner.h" On 2017/03/21 06:48:00, dcheng wrote: > Seems unused. Done. https://codereview.chromium.org/2743663005/diff/60001/base/trace_event/memory... base/trace_event/memory_dump_scheduler_unittest.cc:43: return mds_->ShouldTriggerDump(total); On 2017/03/21 06:48:00, dcheng wrote: > FWIW, this doesn't seem that useful as a helper (since mds_ itself is protected) MemoryDumpScheduler::ShouldTriggerDump is a private function and MemoryDumpSchedulerPollingTest is the friend class. Didn't want to add each test as friend.
The CQ bit was checked by ssid@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
https://codereview.chromium.org/2743663005/diff/60001/base/trace_event/memory... File base/trace_event/memory_dump_scheduler_unittest.cc (right): https://codereview.chromium.org/2743663005/diff/60001/base/trace_event/memory... base/trace_event/memory_dump_scheduler_unittest.cc:43: return mds_->ShouldTriggerDump(total); On 2017/03/22 00:24:19, ssid wrote: > On 2017/03/21 06:48:00, dcheng wrote: > > FWIW, this doesn't seem that useful as a helper (since mds_ itself is > protected) > > MemoryDumpScheduler::ShouldTriggerDump is a private function and > MemoryDumpSchedulerPollingTest is the friend class. Didn't want to add each test > as friend. Oh duh. Sorry for missing that.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds...) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-...) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
https://codereview.chromium.org/2743663005/diff/60001/base/trace_event/memory... File base/trace_event/memory_dump_scheduler_unittest.cc (right): https://codereview.chromium.org/2743663005/diff/60001/base/trace_event/memory... base/trace_event/memory_dump_scheduler_unittest.cc:9: #include "base/single_thread_task_runner.h" On 2017/03/22 00:24:19, ssid wrote: > On 2017/03/21 06:48:00, dcheng wrote: > > Seems unused. > > Done. Um, the include is needed since it's not included in header.
The CQ bit was checked by ssid@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by ssid@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_TIMED_OUT, build hasn't started yet, builder probably lacks capacity) ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_TIMED_OUT, build hasn't started yet, builder probably lacks capacity)
The CQ bit was checked by ssid@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from primiano@chromium.org, dcheng@chromium.org Link to the patchset: https://codereview.chromium.org/2743663005/#ps120001 (title: "get back include")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 120001, "attempt_start_ts": 1490153791191420, "parent_rev": "01ce65c1cff2ff093f1a3cd9d4cea6ca07d467a0", "commit_rev": "e85f2a786db355e428813ba82a0533c3943ee552"}
The CQ bit was unchecked by commit-bot@chromium.org
Exceeded global retry quota
> Exceeded global retry quota Let's retry ticking commit again then. #AnarchyInTheUK
The CQ bit was checked by primiano@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
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_presub...)
The CQ bit was checked by ssid@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: 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_presub...)
This CL broke CFI buildbots. Based on the fact that Rietveld shows a chromium_presubmit bot failed and the issue is not marked as closed / submitted, the CL was forced submitted from the command line. That makes it harder to revert (I am preparing a revert right now). What was the reason to bypass the presubmit queue? The CL does not look like an emergency case.
> What was the reason to bypass the presubmit queue? The CL does not look like an > emergency case. Oh, I see. The bot "Exceeded global retry quota". Bad bot. Bad.
On 2017/03/22 15:59:59, krasin1 wrote: > This CL broke CFI buildbots. Based on the fact that Rietveld shows a > chromium_presubmit bot failed and the issue is not marked as closed / submitted, > the CL was forced submitted from the command line. That makes it harder to > revert (I am preparing a revert right now). > > What was the reason to bypass the presubmit queue? The CL does not look like an > emergency case. I definitely didn't force-land it (I just reticked commit). ssid, did you force land-it (I would be surprised considering that ssid is in MTV and is barely morning there). According to git log: https://chromium.googlesource.com/chromium/src/+/e85f2a786db355e428813ba82a05... committer: Commit bot <commit-bot@chromium.org> So looks like was committed by the CQ, even if the messages here don't show that. I have no idea what's happening. Will file an infra bug
Revert created: https://codereview.chromium.org/2766933004/
On 2017/03/22 16:05:40, krasin1 wrote: > Revert created: https://codereview.chromium.org/2766933004/ I didn't force submit. But I did click commit fuck multiple times and maybe confused the CQ
On 2017/03/22 16:30:52, ssid wrote: > On 2017/03/22 16:05:40, krasin1 wrote: > > Revert created: https://codereview.chromium.org/2766933004/ > > I didn't force submit. But I did click commit multiple times and maybe > confused the CQ Ouch autocorrect! I meant commit tick*!
closing since it landed. |