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

Issue 402052: Prep for printing common memory stats from page_cycler_tests and memory_test:... (Closed)

Created:
11 years, 1 month ago by sgk
Modified:
9 years, 5 months ago
Reviewers:
Mike Belshe
Visibility:
Public.

Description

Prep for printing common memory stats from page_cycler_tests and memory_test: Move PrintIOPerfInfo(), PrintMemoryUsageInfo() and PrintSystemCommitCharge() into the UITest base class so both page_cycler and memory_test will be able to use them. Make the user data dir a parameter so that memory_test will be able to point to its temporary copy. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=32538

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 6

Patch Set 3 : return after NOTREACHED(), more compact scoped_ptr initialization #

Patch Set 4 : remove commented-out code from previous upload #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -162 lines) Patch
M chrome/test/page_cycler/page_cycler_test.cc View 1 2 3 chunks +10 lines, -162 lines 0 comments Download
M chrome/test/ui/ui_test.h View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/test/ui/ui_test.cc View 1 2 3 1 chunk +154 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
sgk
I'm not 100% sold on moving these here; if there's a better pattern, let me ...
11 years, 1 month ago (2009-11-18 17:43:18 UTC) #1
sgk
ping
11 years, 1 month ago (2009-11-19 14:16:38 UTC) #2
Mike Belshe
lgmt http://codereview.chromium.org/402052/diff/3001/4002 File chrome/test/ui/ui_test.cc (right): http://codereview.chromium.org/402052/diff/3001/4002#newcode1190 Line 1190: NOTREACHED(); this is just a DCHECK(false). I ...
11 years, 1 month ago (2009-11-19 16:57:34 UTC) #3
sgk
11 years, 1 month ago (2009-11-19 19:04:07 UTC) #4
http://codereview.chromium.org/402052/diff/3001/4002
File chrome/test/ui/ui_test.cc (right):

http://codereview.chromium.org/402052/diff/3001/4002#newcode1190
Line 1190: NOTREACHED();
On 2009/11/19 16:57:34, Mike Belshe wrote:
> this is just a DCHECK(false).  I think you should return as well.  (otherwise
> this will crash later, right?)

Done.

http://codereview.chromium.org/402052/diff/3001/4002#newcode1193
Line 1193: scoped_ptr<base::ProcessMetrics> process_metrics;
On 2009/11/19 16:57:34, Mike Belshe wrote:
> nit:  you could merge lines 1193 & 1194

Done.

http://codereview.chromium.org/402052/diff/3001/4002#newcode1258
Line 1258: NOTREACHED();
On 2009/11/19 16:57:34, Mike Belshe wrote:
> nit: same thing - should return.

Done.

Powered by Google App Engine
This is Rietveld 408576698