OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
9 #include "base/process_util.h" | 9 #include "base/process_util.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 std::wstring trace_name(test_name); | 259 std::wstring trace_name(test_name); |
260 trace_name.append(L"_cc"); | 260 trace_name.append(L"_cc"); |
261 | 261 |
262 PrintResult(L"commit_charge", L"", trace_name, | 262 PrintResult(L"commit_charge", L"", trace_name, |
263 commit_size / 1024, L"kb", true /* important */); | 263 commit_size / 1024, L"kb", true /* important */); |
264 } | 264 } |
265 | 265 |
266 void PrintIOPerfInfo(const wchar_t* test_name) { | 266 void PrintIOPerfInfo(const wchar_t* test_name) { |
267 printf("\n"); | 267 printf("\n"); |
268 BrowserProcessFilter chrome_filter(user_data_dir_); | 268 BrowserProcessFilter chrome_filter(user_data_dir_); |
269 process_util::NamedProcessIterator | 269 base::NamedProcessIterator |
270 chrome_process_itr(chrome::kBrowserProcessExecutableName, | 270 chrome_process_itr(chrome::kBrowserProcessExecutableName, |
271 &chrome_filter); | 271 &chrome_filter); |
272 | 272 |
273 const PROCESSENTRY32* chrome_entry; | 273 const PROCESSENTRY32* chrome_entry; |
274 while (chrome_entry = chrome_process_itr.NextProcessEntry()) { | 274 while (chrome_entry = chrome_process_itr.NextProcessEntry()) { |
275 uint32 pid = chrome_entry->th32ProcessID; | 275 uint32 pid = chrome_entry->th32ProcessID; |
276 HANDLE process_handle = OpenProcess(PROCESS_QUERY_INFORMATION, | 276 HANDLE process_handle = OpenProcess(PROCESS_QUERY_INFORMATION, |
277 false, | 277 false, |
278 pid); | 278 pid); |
279 if (process_handle == NULL) { | 279 if (process_handle == NULL) { |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 } | 417 } |
418 | 418 |
419 TEST_F(MemoryTest, FiveTabTest) { | 419 TEST_F(MemoryTest, FiveTabTest) { |
420 RunTest(L"5t", 5); | 420 RunTest(L"5t", 5); |
421 } | 421 } |
422 | 422 |
423 TEST_F(MemoryTest, TwelveTabTest) { | 423 TEST_F(MemoryTest, TwelveTabTest) { |
424 RunTest(L"12t", 12); | 424 RunTest(L"12t", 12); |
425 } | 425 } |
426 | 426 |
OLD | NEW |