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

Issue 2391423004: Add UMA for PurgeAndSuspend. (Closed)

Created:
4 years, 2 months ago by tasak
Modified:
4 years, 2 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, jam, dglazkov+blink, darin-cc_chromium.org, asvitkine+watch_chromium.org, blink-reviews, kinuko+watch, blink-reviews-api_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add UMA for PurgeAndSuspend. - Report memory usage after purging cached memory of a backgrounded renderer. - intent-to-implement-and-ship of background renderer's purge + suspend is https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/DK189tnM8l4 - one of the documents attached in the above intent is https://docs.google.com/document/d/1EgLimgxWK5DGhptnNVbEGSvVn6Q609ZJaBkLjEPRJvI/edit?usp=sharing - The feature is not enabled by default because purge-and-suspend-time is 0. BUG=635419 Committed: https://crrev.com/b46626af32c274cbb8f0eaad63237e7d339c0a7b Cr-Commit-Position: refs/heads/master@{#425894}

Patch Set 1 #

Total comments: 16

Patch Set 2 : Fixed. #

Total comments: 8

Patch Set 3 : Add histogram_suffixes #

Total comments: 8

Patch Set 4 : Fixed UMA and histogram_suffixes #

Total comments: 2

Patch Set 5 : Updated #

Patch Set 6 : Memory.PurgeAndSuspend => PurgeAndSuspend.Memory #

Total comments: 5

Patch Set 7 : Fixed. #

Patch Set 8 : Patch for landing #

Patch Set 9 : Fixed histograms.xml. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+259 lines, -0 lines) Patch
M content/child/child_discardable_shared_memory_manager.h View 1 chunk +7 lines, -0 lines 0 comments Download
M content/child/child_discardable_shared_memory_manager.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 3 4 4 chunks +5 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 7 8 5 chunks +114 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/web/WebMemoryStatistics.cpp View 1 1 chunk +49 lines, -0 lines 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/public/web/WebMemoryStatistics.h View 1 chunk +24 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 1 chunk +49 lines, -0 lines 0 comments Download

Messages

Total messages: 83 (60 generated)
tasak
Would you review this CL? I copied metrics code from https://codereview.chromium.org/2350423003 and modified to use ...
4 years, 2 months ago (2016-10-06 05:02:02 UTC) #4
haraken
Mostly looks good, but primiano@ should definitely take a look. https://codereview.chromium.org/2391423004/diff/1/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2391423004/diff/1/content/renderer/render_thread_impl.cc#newcode1854 ...
4 years, 2 months ago (2016-10-06 08:03:17 UTC) #5
tasak
Thank you for review. https://codereview.chromium.org/2391423004/diff/1/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2391423004/diff/1/content/renderer/render_thread_impl.cc#newcode1854 content/renderer/render_thread_impl.cc:1854: // TODO(tasak): Use memory-infra when ...
4 years, 2 months ago (2016-10-06 09:47:40 UTC) #19
Primiano Tucci (use gerrit)
If you really need a short term solution, I don't see many other options other ...
4 years, 2 months ago (2016-10-07 16:30:00 UTC) #22
Ilya Sherman
https://codereview.chromium.org/2391423004/diff/60001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2391423004/diff/60001/content/renderer/render_thread_impl.cc#newcode1866 content/renderer/render_thread_impl.cc:1866: UMA_HISTOGRAM_MEMORY_KB("Memory.PurgeAndSuspend.PartitionAllocKB", Note that the range of UMA_HISTOGRAM_MEMORY_KB goes up ...
4 years, 2 months ago (2016-10-11 00:58:24 UTC) #23
tasak
Thank you for review. https://codereview.chromium.org/2391423004/diff/60001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2391423004/diff/60001/content/renderer/render_thread_impl.cc#newcode1801 content/renderer/render_thread_impl.cc:1801: class ScopedHeapLock { On 2016/10/07 ...
4 years, 2 months ago (2016-10-11 08:15:10 UTC) #32
Ilya Sherman
https://codereview.chromium.org/2391423004/diff/120001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2391423004/diff/120001/content/renderer/render_thread_impl.cc#newcode1848 content/renderer/render_thread_impl.cc:1848: : "Disabled"; You shouldn't need to add these suffixes ...
4 years, 2 months ago (2016-10-11 21:28:57 UTC) #35
tasak
Thank you for review. https://codereview.chromium.org/2391423004/diff/120001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2391423004/diff/120001/content/renderer/render_thread_impl.cc#newcode1848 content/renderer/render_thread_impl.cc:1848: : "Disabled"; On 2016/10/11 21:28:56, ...
4 years, 2 months ago (2016-10-12 07:37:23 UTC) #38
Ilya Sherman
https://codereview.chromium.org/2391423004/diff/140001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2391423004/diff/140001/tools/metrics/histograms/histograms.xml#newcode108434 tools/metrics/histograms/histograms.xml:108434: +</histogram_suffixes> Since the histograms now use a mix of ...
4 years, 2 months ago (2016-10-13 00:43:03 UTC) #41
tasak
https://codereview.chromium.org/2391423004/diff/140001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2391423004/diff/140001/tools/metrics/histograms/histograms.xml#newcode108434 tools/metrics/histograms/histograms.xml:108434: +</histogram_suffixes> On 2016/10/13 00:43:03, Ilya Sherman wrote: > Since ...
4 years, 2 months ago (2016-10-13 03:56:16 UTC) #44
Ilya Sherman
metrics changes lgtm, thanks
4 years, 2 months ago (2016-10-13 21:55:47 UTC) #51
haraken
LGTM
4 years, 2 months ago (2016-10-14 00:46:55 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2391423004/180001
4 years, 2 months ago (2016-10-14 09:20:07 UTC) #54
commit-bot: I haz the power
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_presubmit/builds/281166)
4 years, 2 months ago (2016-10-14 09:29:22 UTC) #56
tasak
avi, would you review this CL? I need content/ OWNER's lgtm.
4 years, 2 months ago (2016-10-17 02:36:11 UTC) #58
Avi (use Gerrit)
Random nits, but otherwise LGTM. https://codereview.chromium.org/2391423004/diff/180001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2391423004/diff/180001/content/renderer/render_thread_impl.cc#newcode1788 content/renderer/render_thread_impl.cc:1788: // Since purging is ...
4 years, 2 months ago (2016-10-17 02:48:04 UTC) #59
tasak
Thank you for review. https://codereview.chromium.org/2391423004/diff/180001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2391423004/diff/180001/content/renderer/render_thread_impl.cc#newcode1788 content/renderer/render_thread_impl.cc:1788: // Since purging is not ...
4 years, 2 months ago (2016-10-17 04:54:19 UTC) #62
tasak
https://codereview.chromium.org/2391423004/diff/180001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2391423004/diff/180001/content/renderer/render_thread_impl.cc#newcode1811 content/renderer/render_thread_impl.cc:1811: for (unsigned i = 0; i < number_of_heaps; i++) ...
4 years, 2 months ago (2016-10-17 10:40:23 UTC) #71
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2391423004/260001
4 years, 2 months ago (2016-10-17 10:40:49 UTC) #74
commit-bot: I haz the power
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_presubmit/builds/282472)
4 years, 2 months ago (2016-10-17 10:50:40 UTC) #76
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2391423004/280001
4 years, 2 months ago (2016-10-18 02:41:44 UTC) #79
commit-bot: I haz the power
Committed patchset #9 (id:280001)
4 years, 2 months ago (2016-10-18 05:55:11 UTC) #81
commit-bot: I haz the power
4 years, 2 months ago (2016-10-18 05:58:15 UTC) #83
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/b46626af32c274cbb8f0eaad63237e7d339c0a7b
Cr-Commit-Position: refs/heads/master@{#425894}

Powered by Google App Engine
This is Rietveld 408576698