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

Issue 10702200: PyAuto test for GPU memory consumption (Closed)

Created:
8 years, 5 months ago by ccameron
Modified:
8 years, 4 months ago
Reviewers:
mmocny, nduca, jam, jbates
CC:
chromium-reviews, kkania, apatrick_chromium, joi+watch-content_chromium.org, anantha, robertshield, dyu1, dennis_jeffrey, darin-cc_chromium.org, wiltzius, jbates
Visibility:
Public.

Description

First step towards adding PyAuto test for GPU memory consumption. A few issues to resolve before considering checking in: 1. @mmocny, would you prefer that I keep the GpuMemoryManager functions that I added in, or would you prefer that I stub them out (since you'll be replacing them... whichever is easier for your workflow) 2. Where should the GpuProcessHostOnMemStatsCallback class be added? It seems natural to leave it next to its caller in testing_automation_provider.cc, but there is only one other class in that file. 3. Will just adding the gpu_mem.py file for the new test activate the test, or is there a separate test list file (I'd prefer to activate the test separately)? BUG=135525 TEST=gpu_mem.py

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : Updated PyAuto test for GPU memory consumption. #

Total comments: 11
Unified diffs Side-by-side diffs Delta from patch set Stats (+281 lines, -0 lines) Patch
M chrome/browser/automation/testing_automation_provider.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/automation/testing_automation_provider.cc View 1 3 chunks +66 lines, -0 lines 0 comments Download
A chrome/test/data/gpu/mem_3dcss.html View 1 1 chunk +72 lines, -0 lines 3 comments Download
A chrome/test/functional/gpu_mem.py View 1 1 chunk +40 lines, -0 lines 7 comments Download
M chrome/test/pyautolib/pyauto.py View 1 chunk +20 lines, -0 lines 1 comment Download
M content/browser/gpu/gpu_process_host.h View 1 4 chunks +12 lines, -0 lines 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 2 chunks +13 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_messages.h View 4 chunks +14 lines, -0 lines 0 comments Download
M content/gpu/gpu_child_thread.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/gpu/gpu_child_thread.cc View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
A content/public/common/gpu_mem_stats.h View 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
mmocny
Were you planning to also add tests for tracking tab visibility during tab switching? Does ...
8 years, 5 months ago (2012-07-17 19:26:03 UTC) #1
jam
please hold off on adding pyauto tests that are meant to be supported by other ...
8 years, 5 months ago (2012-07-17 19:31:49 UTC) #2
nduca
Wait, what?
8 years, 5 months ago (2012-07-17 19:37:30 UTC) #3
nduca
I thought browser_tests weren't going to work on Android and CrOS?
8 years, 5 months ago (2012-07-17 19:41:08 UTC) #4
ccameron
http://codereview.chromium.org/10702200/diff/2001/content/common/gpu/gpu_memory_manager.h File content/common/gpu/gpu_memory_manager.h (right): http://codereview.chromium.org/10702200/diff/2001/content/common/gpu/gpu_memory_manager.h#newcode63 content/common/gpu/gpu_memory_manager.h:63: void GetMemStats(content::GpuMemStats& stats); Yeah, I thought this would be ...
8 years, 5 months ago (2012-07-17 20:00:46 UTC) #5
jam
On Tue, Jul 17, 2012 at 12:41 PM, <nduca@chromium.org> wrote: > I thought browser_tests weren't ...
8 years, 5 months ago (2012-07-17 20:00:55 UTC) #6
ccameron
On 2012/07/17 19:26:03, mmocny wrote: > Were you planning to also add tests for tracking ...
8 years, 5 months ago (2012-07-17 20:09:22 UTC) #7
Nirnimesh
On 2012/07/17 20:00:55, John Abd-El-Malek wrote: > On Tue, Jul 17, 2012 at 12:41 PM, ...
8 years, 5 months ago (2012-07-17 20:20:22 UTC) #8
jam
On Tue, Jul 17, 2012 at 1:20 PM, <nirnimesh@chromium.org> wrote: > On 2012/07/17 20:00:55, John ...
8 years, 5 months ago (2012-07-17 20:32:12 UTC) #9
nduca
http://codereview.chromium.org/10702200/diff/4003/chrome/test/data/gpu/mem_3dcss.html File chrome/test/data/gpu/mem_3dcss.html (right): http://codereview.chromium.org/10702200/diff/4003/chrome/test/data/gpu/mem_3dcss.html#newcode2 chrome/test/data/gpu/mem_3dcss.html:2: <head> Might put an explanation of what this is ...
8 years, 5 months ago (2012-07-17 22:40:25 UTC) #10
mmocny
8 years, 5 months ago (2012-07-18 15:20:18 UTC) #11
http://codereview.chromium.org/10702200/diff/4003/chrome/test/functional/gpu_...
File chrome/test/functional/gpu_mem.py (right):

http://codereview.chromium.org/10702200/diff/4003/chrome/test/functional/gpu_...
chrome/test/functional/gpu_mem.py:37: print 'Using ', self._getGpuMemUsage(), '
bytes of GPU memory'
GpuMemoryManager will have unittests here, but those use fake stubs that will
always provide "valid" numbers for memory allocation hints etc.

We certainly should have a test to make sure we are getting valid/correct
numbers with real pages.  This is basically the same case as with tab
visibility, so perhaps there should first be a simple, separate, sanity test for
that?  E.g. create a tab, make sure its visible and non-0 alloc, create a second
tab make sure first is non visible, create many tabs make sure some have 0
alloc.

On 2012/07/17 22:40:25, nduca wrote:
> Should we have a test that verifies that we get a sane value for memory stats?
> E.g. is the code that figures out the gpu memory stats working?

Powered by Google App Engine
This is Rietveld 408576698