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

Issue 2577843002: Add UMAs for GL context memory usage (Closed)

Created:
4 years ago by ericrk
Modified:
3 years, 11 months ago
CC:
chromium-reviews, piman+watch_chromium.org, asvitkine+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add UMAs for GL context memory usage Adds 6 new UMA metrics which log GL context memory. Memory is logged separately for WebGL and GLES contexts. Additionally, logging occurs at three points - periodically (every 1s), at shutdown, and when the GPU process gets a CRITICAL memory pressure signal. The new histograms are: GPU.ContextMemory.WebGL.Periodic GPU.ContextMemory.WebGL.Shutdown GPU.ContextMemory.WebGL.Pressure GPU.ContextMemory.GLES.Periodic GPU.ContextMemory.GLES.Shutdown GPU.ContextMemory.GLES.Pressure BUG=667013 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/b10572ad91a13dfe5b6faef18990d8464714e666 Cr-Commit-Position: refs/heads/master@{#440882}

Patch Set 1 #

Patch Set 2 : cleanup and xml #

Patch Set 3 : cleanup #

Patch Set 4 : rebase #

Total comments: 4

Patch Set 5 : 30s periodic dump timer #

Total comments: 4

Patch Set 6 : feedback #

Total comments: 2

Patch Set 7 : s/mb/MB and update pretty_print.py #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -7 lines) Patch
M gpu/ipc/service/gpu_command_buffer_stub.cc View 1 2 3 4 5 6 chunks +62 lines, -7 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 2 chunks +19 lines, -0 lines 0 comments Download
M tools/metrics/histograms/pretty_print.py View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (21 generated)
ericrk
cleanup and xml
4 years ago (2016-12-14 23:44:20 UTC) #2
ericrk
rebase
4 years ago (2016-12-16 22:49:08 UTC) #8
ericrk
https://codereview.chromium.org/2577843002/diff/60001/gpu/ipc/service/gpu_command_buffer_stub.cc File gpu/ipc/service/gpu_command_buffer_stub.cc (right): https://codereview.chromium.org/2577843002/diff/60001/gpu/ipc/service/gpu_command_buffer_stub.cc#newcode109 gpu/ipc/service/gpu_command_buffer_stub.cc:109: memory_pressure_listener_(new base::MemoryPressureListener( Unfortunately, memory_pressure_listener_ doesn't support a custom TaskRunner ...
4 years ago (2016-12-16 22:51:37 UTC) #10
Ken Russell (switch to Gerrit)
Thanks very much for picking this up Eric. The code overall looks fine, but one ...
4 years ago (2016-12-20 03:55:40 UTC) #15
ericrk
https://codereview.chromium.org/2577843002/diff/60001/gpu/ipc/service/gpu_command_buffer_stub.cc File gpu/ipc/service/gpu_command_buffer_stub.cc (right): https://codereview.chromium.org/2577843002/diff/60001/gpu/ipc/service/gpu_command_buffer_stub.cc#newcode112 gpu/ipc/service/gpu_command_buffer_stub.cc:112: // Set up |memory_stats_timer_| to call LogMemoryPeriodic every 1s ...
4 years ago (2016-12-20 20:01:49 UTC) #16
Ken Russell (switch to Gerrit)
Thanks again. LGTM. Couple questions. Also, you'll need an OWNERS review -- CC'ing a couple ...
4 years ago (2016-12-20 20:28:03 UTC) #20
ericrk
https://codereview.chromium.org/2577843002/diff/80001/gpu/ipc/service/gpu_command_buffer_stub.cc File gpu/ipc/service/gpu_command_buffer_stub.cc (right): https://codereview.chromium.org/2577843002/diff/80001/gpu/ipc/service/gpu_command_buffer_stub.cc#newcode112 gpu/ipc/service/gpu_command_buffer_stub.cc:112: // Set up |memory_stats_timer_| to call LogMemoryPeriodic every 1s ...
4 years ago (2016-12-20 21:19:08 UTC) #21
Ilya Sherman
Metrics LGTM, thanks. https://codereview.chromium.org/2577843002/diff/100001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2577843002/diff/100001/tools/metrics/histograms/histograms.xml#newcode19780 tools/metrics/histograms/histograms.xml:19780: +<histogram name="GPU.ContextMemory" units="mb"> nit: s/mb/MB (and ...
4 years ago (2016-12-20 22:08:51 UTC) #22
ericrk
https://codereview.chromium.org/2577843002/diff/100001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2577843002/diff/100001/tools/metrics/histograms/histograms.xml#newcode19780 tools/metrics/histograms/histograms.xml:19780: +<histogram name="GPU.ContextMemory" units="mb"> On 2016/12/20 22:08:51, Ilya Sherman (Away ...
4 years ago (2016-12-20 23:52:45 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/2577843002/120001
4 years ago (2016-12-20 23:52:57 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: win_optional_gpu_tests_rel on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_optional_gpu_tests_rel/builds/6175)
4 years ago (2016-12-21 05:07:26 UTC) #28
Ken Russell (switch to Gerrit)
On 2016/12/21 05:07:26, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years ago (2016-12-21 17:48:01 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/2577843002/120001
3 years, 11 months ago (2016-12-28 19:04:22 UTC) #31
commit-bot: I haz the power
Committed patchset #7 (id:120001)
3 years, 11 months ago (2016-12-28 19:54:45 UTC) #34
commit-bot: I haz the power
3 years, 11 months ago (2017-01-02 15:49:59 UTC) #36
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/b10572ad91a13dfe5b6faef18990d8464714e666
Cr-Commit-Position: refs/heads/master@{#440882}

Powered by Google App Engine
This is Rietveld 408576698