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

Issue 11470024: Don't spam the GPU process with memory usage stats (Closed)

Created:
8 years ago by ccameron
Modified:
8 years ago
Reviewers:
jamesr
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

Round managed memory stats to the nearest 8MB, and don't perform redundant updates, to avoid frequently descheduling the renderer. BUG=164947 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171949

Patch Set 1 #

Total comments: 4

Patch Set 2 : Move RoundUp macro to cc/util.h #

Total comments: 4

Patch Set 3 : Incorporate review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -17 lines) Patch
M cc/cc.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/layer_tree_host_impl.h View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M cc/layer_tree_host_impl.cc View 1 2 3 chunks +32 lines, -0 lines 0 comments Download
M cc/single_thread_proxy.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M cc/texture_uploader.cc View 1 2 4 chunks +3 lines, -7 lines 0 comments Download
M cc/thread_proxy.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download
A + cc/util.h View 1 2 1 chunk +9 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
ccameron
This should throttle things somewhat. I found in some experiments, that the visible/visible-and-nearby bytes will ...
8 years ago (2012-12-07 21:58:41 UTC) #1
jamesr
On 2012/12/07 21:58:41, ccameron1 wrote: > This should throttle things somewhat. I found in some ...
8 years ago (2012-12-07 22:04:42 UTC) #2
jamesr
https://codereview.chromium.org/11470024/diff/1/cc/layer_tree_host_impl.cc File cc/layer_tree_host_impl.cc (right): https://codereview.chromium.org/11470024/diff/1/cc/layer_tree_host_impl.cc#newcode1639 cc/layer_tree_host_impl.cc:1639: if (m_lastSentMemoryVisibleBytes == memoryVisibleBytes && alternately, why not just ...
8 years ago (2012-12-07 22:14:33 UTC) #3
ccameron
I added cc/util.h, because the alternatives (trying to get something into base or copy-paste) didn't ...
8 years ago (2012-12-07 22:33:49 UTC) #4
jamesr
lgtm it amuses me that cc/util.h has a math utility and cc/math_util.h has geometry stuff ...
8 years ago (2012-12-07 23:19:11 UTC) #5
ccameron
Thanks!! https://codereview.chromium.org/11470024/diff/6001/cc/layer_tree_host_impl.cc File cc/layer_tree_host_impl.cc (right): https://codereview.chromium.org/11470024/diff/6001/cc/layer_tree_host_impl.cc#newcode1636 cc/layer_tree_host_impl.cc:1636: const size_t roundingStep = 8 * 1024 * ...
8 years ago (2012-12-08 00:21:15 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/11470024/10001
8 years ago (2012-12-08 00:22:36 UTC) #7
commit-bot: I haz the power
8 years ago (2012-12-08 06:24:29 UTC) #8
Message was sent while issue was closed.
Change committed as 171949

Powered by Google App Engine
This is Rietveld 408576698