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

Side by Side Diff: base/process_util_linux.cc

Issue 10905: Unfork test_shell_main_gtk back into test_shell_main. (Closed)
Patch Set: Created 12 years, 1 month 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
OLDNEW
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/process_util.h" 5 #include "base/process_util.h"
6 6
7 #include <ctype.h> 7 #include <ctype.h>
8 #include <dirent.h> 8 #include <dirent.h>
9 #include <string> 9 #include <string>
10 #include <sys/types.h> 10 #include <sys/types.h>
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 } else if (last_key_name == "wchar") { 315 } else if (last_key_name == "wchar") {
316 (*io_counters).WriteTransferCount = StringToInt64(tokenizer.token()); 316 (*io_counters).WriteTransferCount = StringToInt64(tokenizer.token());
317 } 317 }
318 state = KEY_NAME; 318 state = KEY_NAME;
319 break; 319 break;
320 } 320 }
321 } 321 }
322 return true; 322 return true;
323 } 323 }
324 324
325 int ProcessMetrics::GetCPUUsage() {
326 // TODO(port): This needs to be replaced by an call to getrusage().
327 return -1;
328 }
329
325 } // namespace process_util 330 } // namespace process_util
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698