summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorthomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-12 14:48:30 +0000
committerthomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-12 14:48:30 +0000
commit821ad22c838df072311e12ebcfda93feb72f67af (patch)
tree36407bf7219435515ac643b41ef870dc8e6f2d68 /base
parent8a9b6a53699c2702da395ad4aaef131921f55e71 (diff)
downloadchromium_src-821ad22c838df072311e12ebcfda93feb72f67af.zip
chromium_src-821ad22c838df072311e12ebcfda93feb72f67af.tar.gz
chromium_src-821ad22c838df072311e12ebcfda93feb72f67af.tar.bz2
Update the comments on why these really can't be done, and remove the notimpls.
Review URL: http://codereview.chromium.org/126011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18268 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/process_util_mac.mm21
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