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

Issue 2566043004: Add renderer memory metrics (Closed)

Created:
4 years ago by keishi
Modified:
3 years, 11 months ago
CC:
chromium-reviews, jam, darin-cc_chromium.org, asvitkine+watch_chromium.org, mlamouri+watch-content_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add renderer memory metrics We will collect per allocator memory usage metrics for the renderer at DidFinishLoad and Shutdown. GetRendererMemoryMetrics generalizes the memory info collection that was used in RecordPurgeAndSuspendMetrics for use with my new metrics. GetRendererMemoryMetrics is in RenderThreadImpl because it accesses discardable_shared_memory_manager_. BUG= Review-Url: https://codereview.chromium.org/2566043004 Cr-Commit-Position: refs/heads/master@{#443195} Committed: https://chromium.googlesource.com/chromium/src/+/51ed0d54153a164e68155447fcd1cfcb393f1870

Patch Set 1 #

Total comments: 4

Patch Set 2 : Added per RenderView size #

Patch Set 3 : Changed to MB #

Patch Set 4 : Moved to content #

Total comments: 2

Patch Set 5 : Removed Shutdown, added MainFrameDidFinishLoad, used suffix #

Total comments: 9

Patch Set 6 : Added RendererMemoryAllocator suffix #

Total comments: 6

Patch Set 7 : Fixed nits #

Patch Set 8 : Fixed test failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -23 lines) Patch
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 1 chunk +62 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 3 chunks +42 lines, -23 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 2 chunks +46 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (14 generated)
keishi
I am writing a document on this but I think the biggest problems with the ...
4 years ago (2016-12-12 09:21:17 UTC) #3
haraken
non-owner LGTM It will take months to figure out how to collect consistent UMAs from ...
4 years ago (2016-12-12 11:32:27 UTC) #5
erikchen
On 2016/12/12 11:32:27, haraken wrote: > non-owner LGTM > > It will take months to ...
4 years ago (2016-12-14 18:47:23 UTC) #6
Primiano Tucci (use gerrit)
non-owner LGTM % erik's comment about units.
3 years, 11 months ago (2017-01-06 10:35:14 UTC) #7
keishi
jam@ would you please take a look? Thanks. https://codereview.chromium.org/2566043004/diff/1/chrome/renderer/chrome_render_frame_observer.cc File chrome/renderer/chrome_render_frame_observer.cc (right): https://codereview.chromium.org/2566043004/diff/1/chrome/renderer/chrome_render_frame_observer.cc#newcode255 chrome/renderer/chrome_render_frame_observer.cc:255: content::RenderThread::Get()->GetRendererMemoryMetrics(&memory_metrics); ...
3 years, 11 months ago (2017-01-06 11:08:27 UTC) #9
jam
why are you adding a public api to content so that chrome can call UM? ...
3 years, 11 months ago (2017-01-06 17:05:01 UTC) #10
keishi
On 2017/01/06 17:05:01, jam wrote: > why are you adding a public api to content ...
3 years, 11 months ago (2017-01-09 13:14:44 UTC) #11
keishi
isherman@ could you review histograms.xml? Thanks.
3 years, 11 months ago (2017-01-09 13:16:12 UTC) #13
jam
lgtm
3 years, 11 months ago (2017-01-10 07:02:20 UTC) #14
Ilya Sherman
Please use histogram_suffixes elements to reduce the amount of repetition in the histograms.xml file. https://codereview.chromium.org/2566043004/diff/60001/content/renderer/render_thread_impl.cc ...
3 years, 11 months ago (2017-01-10 20:29:56 UTC) #15
keishi
I removed the metrics for Shutdown because they weren't called. Instead I added MainFrameDidFinishLoad metrics ...
3 years, 11 months ago (2017-01-11 02:40:46 UTC) #16
Ilya Sherman
Thanks. https://codereview.chromium.org/2566043004/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2566043004/diff/80001/tools/metrics/histograms/histograms.xml#newcode26701 tools/metrics/histograms/histograms.xml:26701: +<histogram name="Memory.Experimental.Renderer.BlinkGCMB" units="MB"> Optional nit: Are you sure ...
3 years, 11 months ago (2017-01-12 01:04:14 UTC) #17
keishi
https://codereview.chromium.org/2566043004/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2566043004/diff/80001/tools/metrics/histograms/histograms.xml#newcode26701 tools/metrics/histograms/histograms.xml:26701: +<histogram name="Memory.Experimental.Renderer.BlinkGCMB" units="MB"> On 2017/01/12 01:04:14, Ilya Sherman wrote: ...
3 years, 11 months ago (2017-01-12 01:58:01 UTC) #18
Ilya Sherman
Thanks. Metrics LGTM % remaining nits: https://codereview.chromium.org/2566043004/diff/100001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2566043004/diff/100001/tools/metrics/histograms/histograms.xml#newcode115231 tools/metrics/histograms/histograms.xml:115231: + <suffix name="BlinkGC" ...
3 years, 11 months ago (2017-01-12 02:17:24 UTC) #19
keishi
https://codereview.chromium.org/2566043004/diff/100001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2566043004/diff/100001/tools/metrics/histograms/histograms.xml#newcode115231 tools/metrics/histograms/histograms.xml:115231: + <suffix name="BlinkGC" label="Constrained to the BlinkGC allocator"/> On ...
3 years, 11 months ago (2017-01-12 02:39:11 UTC) #20
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/2566043004/120001
3 years, 11 months ago (2017-01-12 02:39:47 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/263284)
3 years, 11 months ago (2017-01-12 02:50:14 UTC) #25
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/2566043004/120001
3 years, 11 months ago (2017-01-12 05:34:41 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/367475)
3 years, 11 months ago (2017-01-12 06:05:59 UTC) #29
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/2566043004/140001
3 years, 11 months ago (2017-01-12 08:22:32 UTC) #32
commit-bot: I haz the power
3 years, 11 months ago (2017-01-12 10:05:23 UTC) #35
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/51ed0d54153a164e68155447fcd1...

Powered by Google App Engine
This is Rietveld 408576698