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

Side by Side Diff: chrome/test/base/chrome_process_util_mac.cc

Issue 12378016: chrome: Update include paths of string_split.h to its new location. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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/automation/proxy_launcher.cc ('k') | chrome/test/chromedriver/commands.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/base/chrome_process_util.h" 5 #include "chrome/test/base/chrome_process_util.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/process_util.h" 11 #include "base/process_util.h"
12 #include "base/string_split.h"
13 #include "base/string_util.h" 12 #include "base/string_util.h"
14 #include "base/stringprintf.h" 13 #include "base/stringprintf.h"
15 #include "base/strings/string_number_conversions.h" 14 #include "base/strings/string_number_conversions.h"
15 #include "base/strings/string_split.h"
16 16
17 MacChromeProcessInfoList GetRunningMacProcessInfo( 17 MacChromeProcessInfoList GetRunningMacProcessInfo(
18 const ChromeProcessList& process_list) { 18 const ChromeProcessList& process_list) {
19 MacChromeProcessInfoList result; 19 MacChromeProcessInfoList result;
20 20
21 // Build up the ps command line 21 // Build up the ps command line
22 std::vector<std::string> cmdline; 22 std::vector<std::string> cmdline;
23 cmdline.push_back("ps"); 23 cmdline.push_back("ps");
24 cmdline.push_back("-o"); 24 cmdline.push_back("-o");
25 cmdline.push_back("pid=,rss=,vsz="); // fields we need, no headings 25 cmdline.push_back("pid=,rss=,vsz="); // fields we need, no headings
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 GetMemoryValuesHack(process_handle_, &virtual_size, &working_set_size); 100 GetMemoryValuesHack(process_handle_, &virtual_size, &working_set_size);
101 return virtual_size; 101 return virtual_size;
102 } 102 }
103 103
104 size_t ChromeTestProcessMetrics::GetWorkingSetSize() { 104 size_t ChromeTestProcessMetrics::GetWorkingSetSize() {
105 size_t virtual_size; 105 size_t virtual_size;
106 size_t working_set_size; 106 size_t working_set_size;
107 GetMemoryValuesHack(process_handle_, &virtual_size, &working_set_size); 107 GetMemoryValuesHack(process_handle_, &virtual_size, &working_set_size);
108 return working_set_size; 108 return working_set_size;
109 } 109 }
OLDNEW
« no previous file with comments | « chrome/test/automation/proxy_launcher.cc ('k') | chrome/test/chromedriver/commands.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698