diff options
Diffstat (limited to 'base')
-rw-r--r-- | base/process_util_mac.mm | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/base/process_util_mac.mm b/base/process_util_mac.mm index de59896..9653ada 100644 --- a/base/process_util_mac.mm +++ b/base/process_util_mac.mm @@ -227,30 +227,31 @@ bool NamedProcessIterator::IncludeEntry() { return filter_->Includes(entry_.pid, entry_.ppid); } + +// ------------------------------------------------------------------------ +// NOTE: about ProcessMetrics +// +// Mac doesn't have /proc, and getting a mach task from a pid for another +// process requires permissions, so there doesn't really seem to be a way +// to do these (and spinning up ps to fetch each stats seems dangerous to +// put in a base api for anyone to call. +// bool ProcessMetrics::GetIOCounters(IoCounters* io_counters) const { - // TODO(pinkerton): can we implement this? On linux it relies on /proc. - NOTIMPLEMENTED(); return false; } - size_t ProcessMetrics::GetPagefileUsage() const { - NOTIMPLEMENTED(); return 0; } - size_t ProcessMetrics::GetPeakPagefileUsage() const { - NOTIMPLEMENTED(); return 0; } - size_t ProcessMetrics::GetWorkingSetSize() const { - NOTIMPLEMENTED(); return 0; } - size_t ProcessMetrics::GetPeakWorkingSetSize() const { - NOTIMPLEMENTED(); return 0; } +// ------------------------------------------------------------------------ + } // namespace base |