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

Side by Side Diff: chrome/test/perf/browser_perf_test.cc

Issue 19860007: Update include paths in chrome/test for base/process changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/mini_installer_test/test.cc ('k') | chrome/test/perf/generate_profile.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/test/perf/browser_perf_test.h" 5 #include "chrome/test/perf/browser_perf_test.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/process_util.h"
9 #include "chrome/common/chrome_switches.h" 8 #include "chrome/common/chrome_switches.h"
10 #include "chrome/test/base/chrome_process_util.h" 9 #include "chrome/test/base/chrome_process_util.h"
11 #include "chrome/test/perf/perf_test.h" 10 #include "chrome/test/perf/perf_test.h"
12 11
13 BrowserPerfTest::BrowserPerfTest() { 12 BrowserPerfTest::BrowserPerfTest() {
14 } 13 }
15 14
16 BrowserPerfTest::~BrowserPerfTest() { 15 BrowserPerfTest::~BrowserPerfTest() {
17 } 16 }
18 17
19 void BrowserPerfTest::SetUpCommandLine(CommandLine* command_line) { 18 void BrowserPerfTest::SetUpCommandLine(CommandLine* command_line) {
20 // Reduce performance test variance by disabling background networking. 19 // Reduce performance test variance by disabling background networking.
21 command_line->AppendSwitch(switches::kDisableBackgroundNetworking); 20 command_line->AppendSwitch(switches::kDisableBackgroundNetworking);
22 } 21 }
23 22
24 void BrowserPerfTest::PrintIOPerfInfo(const std::string& test_name) { 23 void BrowserPerfTest::PrintIOPerfInfo(const std::string& test_name) {
25 base::ProcessId browser_pid = base::GetCurrentProcId(); 24 base::ProcessId browser_pid = base::GetCurrentProcId();
26 ChromeProcessList chrome_processes(GetRunningChromeProcesses(browser_pid)); 25 ChromeProcessList chrome_processes(GetRunningChromeProcesses(browser_pid));
27 perf_test::PrintIOPerfInfo(test_name, chrome_processes, browser_pid); 26 perf_test::PrintIOPerfInfo(test_name, chrome_processes, browser_pid);
28 } 27 }
29 28
30 void BrowserPerfTest::PrintMemoryUsageInfo(const std::string& test_name) { 29 void BrowserPerfTest::PrintMemoryUsageInfo(const std::string& test_name) {
31 base::ProcessId browser_pid = base::GetCurrentProcId(); 30 base::ProcessId browser_pid = base::GetCurrentProcId();
32 ChromeProcessList chrome_processes(GetRunningChromeProcesses(browser_pid)); 31 ChromeProcessList chrome_processes(GetRunningChromeProcesses(browser_pid));
33 perf_test::PrintMemoryUsageInfo(test_name, chrome_processes, browser_pid); 32 perf_test::PrintMemoryUsageInfo(test_name, chrome_processes, browser_pid);
34 } 33 }
OLDNEW
« no previous file with comments | « chrome/test/mini_installer_test/test.cc ('k') | chrome/test/perf/generate_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698