| Index: base/process_util_posix.cc
|
| ===================================================================
|
| --- base/process_util_posix.cc (revision 3009)
|
| +++ base/process_util_posix.cc (working copy)
|
| @@ -8,6 +8,7 @@
|
| #include <unistd.h>
|
|
|
| #include "base/basictypes.h"
|
| +#include "base/sys_info.h"
|
|
|
| namespace process_util {
|
|
|
| @@ -23,6 +24,19 @@
|
| return process;
|
| }
|
|
|
| +ProcessMetrics::ProcessMetrics(ProcessHandle process) : process_(process),
|
| + last_time_(0),
|
| + last_system_time_(0) {
|
| + processor_count_ = base::SysInfo::NumberOfProcessors();
|
| +}
|
| +
|
| +// static
|
| +ProcessMetrics* ProcessMetrics::CreateProcessMetrics(ProcessHandle process) {
|
| + return new ProcessMetrics(process);
|
| +}
|
| +
|
| +ProcessMetrics::~ProcessMetrics() { }
|
| +
|
| void EnableTerminationOnHeapCorruption() {
|
| // On POSIX, there nothing to do AFAIK.
|
| }
|
|
|