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

Issue 1995573003: [tracing] Introduce BACKGROUND mode in MemoryInfra (Closed)

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

Description

[tracing] Introduce BACKGROUND mode in MemoryInfra This CL makes following changes: 1. Adds a BACKGROUND mode in the dump triggers in trace config. 1. Periodic dumps can be disabled on passing 0 as interval. 2. On BACKGROUND mode only whitelisted dump providers are invoked. 3. Clean up periodic dump timer set up. 4. MemoryDumpSessionState is initialized with config in the renderer also. BUG=613198 Committed: https://crrev.com/13ebc734eab7950938afbfac677080604d972d91 Cr-Commit-Position: refs/heads/master@{#396927}

Patch Set 1 : with periodic again. #

Total comments: 24

Patch Set 2 : Address comments and fix tests. #

Total comments: 5

Patch Set 3 : Use nullptr to mark end. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+288 lines, -94 lines) Patch
M base/trace_event/memory_dump_manager.h View 1 5 chunks +39 lines, -2 lines 0 comments Download
M base/trace_event/memory_dump_manager.cc View 1 2 9 chunks +129 lines, -70 lines 0 comments Download
M base/trace_event/memory_dump_manager_unittest.cc View 1 2 3 chunks +54 lines, -4 lines 0 comments Download
M base/trace_event/memory_dump_request_args.h View 1 1 chunk +17 lines, -6 lines 0 comments Download
M base/trace_event/memory_dump_request_args.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M base/trace_event/trace_config_memory_test_util.h View 1 chunk +21 lines, -0 lines 0 comments Download
M base/trace_event/trace_config_unittest.cc View 1 chunk +22 lines, -11 lines 0 comments Download
M components/tracing/child_trace_message_filter_browsertest.cc View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 49 (30 generated)
ssid
ptal, thanks. This only whitelists dump provider on background mode. Next cl will add code ...
4 years, 7 months ago (2016-05-23 18:17:04 UTC) #8
Primiano Tucci (use gerrit)
Did a first pass. Overall the approach looks great. The only major doubt is the ...
4 years, 7 months ago (2016-05-26 17:20:54 UTC) #9
ssid
Thanks, made suggested changes, except the whitelist being replaced for testing. Added a workaround for ...
4 years, 7 months ago (2016-05-26 22:12:55 UTC) #10
Primiano Tucci (use gerrit)
LGTM % final comments. I prefer that dump_provider_whitelisted_for_testing_ was still an array (look at the ...
4 years, 6 months ago (2016-05-27 14:55:53 UTC) #13
ssid
I am so sorry, I deleted the patch you reviewed by mistake. I can't find ...
4 years, 6 months ago (2016-05-27 18:49:05 UTC) #15
ssid
+rbyers for one line change in WebKit/public/platform/WebMemoryDumpProvider.h +haraken for web_memory_dump_provider_adapter.cc PTAL, Thanks
4 years, 6 months ago (2016-05-27 18:54:31 UTC) #17
haraken
WebKit/Source LGTM.
4 years, 6 months ago (2016-05-27 19:02:02 UTC) #18
ssid
Sorry I just realized that these files were removed already. Rebased it, no change in ...
4 years, 6 months ago (2016-05-27 19:03:49 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1995573003/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1995573003/240001
4 years, 6 months ago (2016-05-27 19:04:25 UTC) #21
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/197663)
4 years, 6 months ago (2016-05-27 19:37:44 UTC) #23
Rick Byers
On 2016/05/27 19:03:49, ssid wrote: > Sorry I just realized that these files were removed ...
4 years, 6 months ago (2016-05-27 20:10:50 UTC) #25
Dmitry Skiba
https://codereview.chromium.org/1995573003/diff/320001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/1995573003/diff/320001/base/trace_event/memory_dump_manager.cc#newcode58 base/trace_event/memory_dump_manager.cc:58: "", // End of list marker. nit: usually nullptr ...
4 years, 6 months ago (2016-05-31 07:06:01 UTC) #28
Primiano Tucci (use gerrit)
still lg https://codereview.chromium.org/1995573003/diff/320001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/1995573003/diff/320001/base/trace_event/memory_dump_manager.cc#newcode58 base/trace_event/memory_dump_manager.cc:58: "", // End of list marker. On ...
4 years, 6 months ago (2016-05-31 07:30:55 UTC) #29
ssid
Thanks, fixed. https://codereview.chromium.org/1995573003/diff/320001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/1995573003/diff/320001/base/trace_event/memory_dump_manager.cc#newcode58 base/trace_event/memory_dump_manager.cc:58: "", // End of list marker. On ...
4 years, 6 months ago (2016-05-31 19:55:43 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1995573003/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1995573003/340001
4 years, 6 months ago (2016-05-31 19:56:25 UTC) #32
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-05-31 20:17:54 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1995573003/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1995573003/340001
4 years, 6 months ago (2016-05-31 20:56:17 UTC) #37
commit-bot: I haz the power
Committed patchset #11 (id:340001)
4 years, 6 months ago (2016-05-31 21:01:24 UTC) #39
commit-bot: I haz the power
4 years, 6 months ago (2016-05-31 21:03:18 UTC) #41
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/13ebc734eab7950938afbfac677080604d972d91
Cr-Commit-Position: refs/heads/master@{#396927}

Powered by Google App Engine
This is Rietveld 408576698