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

Issue 10161033: Adding pyauto-based memory usage tests for ChromeOS. (Closed)

Created:
8 years, 8 months ago by dennis_jeffrey
Modified:
8 years, 7 months ago
CC:
chromium-reviews, anantha, dyu1, Nirnimesh
Visibility:
Public.

Description

Adding pyauto-based memory usage tests for ChromeOS. These tests each open and close a set of tabs twice, and measure/record memory usage information at certain points during test execution. BUG=chromium-os:29815 TEST=Verified the test runs successfully on my local ChromeOS device running a recent official build. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=134417

Patch Set 1 #

Patch Set 2 : Changed control site from new tab page to about:blank #

Total comments: 10

Patch Set 3 : Measure available mem (not free) and measure shared mem. #

Patch Set 4 : _GetMemoryStats now samples and outputs min/max/end values. #

Total comments: 20

Patch Set 5 : Addressed comments from patch set 4. #

Total comments: 23

Patch Set 6 : Addressed comments from patch set 5. #

Patch Set 7 : Now recording many more types of memory stats. #

Total comments: 2

Patch Set 8 : Ensure one process per tab, and measure GTT. #

Patch Set 9 : Minor change to a comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+293 lines, -1 line) Patch
M chrome/test/functional/perf.py View 1 2 3 4 5 6 7 8 2 chunks +293 lines, -1 line 0 comments Download

Messages

Total messages: 24 (0 generated)
dennis_jeffrey
[Not ready for full review yet - just soliciting feedback]. Sending this out for initial ...
8 years, 8 months ago (2012-04-25 18:32:31 UTC) #1
dennis_jeffrey
On 2012/04/25 18:32:31, dennis_jeffrey wrote: > [Not ready for full review yet - just soliciting ...
8 years, 8 months ago (2012-04-25 18:33:12 UTC) #2
James Cook
https://chromiumcodereview.appspot.com/10161033/diff/2001/chrome/test/functional/perf.py File chrome/test/functional/perf.py (right): https://chromiumcodereview.appspot.com/10161033/diff/2001/chrome/test/functional/perf.py#newcode1810 chrome/test/functional/perf.py:1810: mem_free = re.search('MemFree:\s*([\d]+) kB', stdout).group(1) I recommend using available ...
8 years, 8 months ago (2012-04-25 19:15:56 UTC) #3
ilja
I think it is a good start. We should still consider more carefully how we ...
8 years, 8 months ago (2012-04-25 19:50:23 UTC) #4
dennis_jeffrey
Modified the code to record available memory (instead of free memory), and also shared memory. ...
8 years, 8 months ago (2012-04-25 21:31:58 UTC) #5
dennisjeffrey
I just saw this comment in the associated bug regarding sampling of data: http://code.google.com/p/chromium-os/issues/detail?id=29815#c13 I'll ...
8 years, 8 months ago (2012-04-25 21:35:21 UTC) #6
dennis_jeffrey
Modified the code as per Ilja's comment in the associated bug to have _GetMemoryStats() sample ...
8 years, 8 months ago (2012-04-25 22:06:56 UTC) #7
ilja
I think the numbers you have posted are very interesting already. We are getting very ...
8 years, 8 months ago (2012-04-25 23:37:36 UTC) #8
dennis_jeffrey
https://chromiumcodereview.appspot.com/10161033/diff/5002/chrome/test/functional/perf.py File chrome/test/functional/perf.py (right): https://chromiumcodereview.appspot.com/10161033/diff/5002/chrome/test/functional/perf.py#newcode1773 chrome/test/functional/perf.py:1773: On 2012/04/25 23:37:37, ilja wrote: > I assume you ...
8 years, 8 months ago (2012-04-26 01:46:25 UTC) #9
ilja
lgtm but lets wait for Sonny and James.
8 years, 8 months ago (2012-04-26 02:44:35 UTC) #10
James Cook
LGTM. Sorry, didn't mean to add myself as a reviewer.
8 years, 8 months ago (2012-04-26 03:45:52 UTC) #11
Sonny
Some general comments about what data we're collecting and when. Also wanted to make sure ...
8 years, 8 months ago (2012-04-26 04:55:18 UTC) #12
ihf
Sonny: could you explain somewhere what you want from GetProcessInfo? It is not in the ...
8 years, 8 months ago (2012-04-26 05:19:16 UTC) #13
James Cook
https://chromiumcodereview.appspot.com/10161033/diff/10002/chrome/test/functional/perf.py File chrome/test/functional/perf.py (right): https://chromiumcodereview.appspot.com/10161033/diff/10002/chrome/test/functional/perf.py#newcode1840 chrome/test/functional/perf.py:1840: int(mem_free)) On 2012/04/26 05:19:17, ihf wrote: > This was ...
8 years, 8 months ago (2012-04-26 05:25:58 UTC) #14
Sonny
https://chromiumcodereview.appspot.com/10161033/diff/10002/chrome/test/functional/perf.py File chrome/test/functional/perf.py (right): https://chromiumcodereview.appspot.com/10161033/diff/10002/chrome/test/functional/perf.py#newcode1833 chrome/test/functional/perf.py:1833: mem_dirty = re.search('Dirty:\s*([\d]+) kB', stdout).group(1) On 2012/04/26 04:55:18, Sonny ...
8 years, 8 months ago (2012-04-26 05:38:13 UTC) #15
dennis_jeffrey
Addressed comments and also added a new test that does the same thing, except it ...
8 years, 8 months ago (2012-04-26 18:47:38 UTC) #16
ilja
I agree: lets iterate once we get a few numbers. The changes look good.
8 years, 8 months ago (2012-04-26 21:37:12 UTC) #17
Sonny
I guess I'm in the minority here, but in it's current form I think this ...
8 years, 8 months ago (2012-04-26 22:25:40 UTC) #18
dennis_jeffrey
I changed GTT memory to the Gem Objects memory. I'm also recording several new types ...
8 years, 8 months ago (2012-04-28 00:21:35 UTC) #19
Sonny
LGTM Looks good thanks! Had one more suggestion, but not required for the first pass ...
8 years, 8 months ago (2012-04-28 00:40:01 UTC) #20
dennis_jeffrey
https://chromiumcodereview.appspot.com/10161033/diff/18001/chrome/test/functional/perf.py File chrome/test/functional/perf.py (right): https://chromiumcodereview.appspot.com/10161033/diff/18001/chrome/test/functional/perf.py#newcode1770 chrome/test/functional/perf.py:1770: On 2012/04/28 00:40:02, Sonny wrote: > Forgot to put ...
8 years, 8 months ago (2012-04-28 00:55:17 UTC) #21
Sonny
lgtm
8 years, 8 months ago (2012-04-28 00:56:43 UTC) #22
ilja
lgtm
8 years, 8 months ago (2012-04-28 01:01:42 UTC) #23
James Cook
8 years, 7 months ago (2012-04-28 23:03:56 UTC) #24
lgtm

Powered by Google App Engine
This is Rietveld 408576698