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

Unified Diff: third_party/psutil/psutil/_psutil_osx.h

Issue 6246123: Moving psutil to third_party. This is first step for Media Performance test project. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: modification based on code review's comments Created 9 years, 11 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/psutil/psutil/_psutil_mswindows.c ('k') | third_party/psutil/psutil/_psutil_osx.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/psutil/psutil/_psutil_osx.h
diff --git a/third_party/psutil/psutil/_psutil_osx.h b/third_party/psutil/psutil/_psutil_osx.h
new file mode 100644
index 0000000000000000000000000000000000000000..ebef76474ec82ceb021300dff70991286062fbc7
--- /dev/null
+++ b/third_party/psutil/psutil/_psutil_osx.h
@@ -0,0 +1,29 @@
+/*
+ * $Id: _psutil_osx.h 780 2010-11-10 18:42:47Z jloden $
+ *
+ * OS X platform-specific module methods for _psutil_osx
+ */
+
+#include <Python.h>
+
+// --- per-process functions
+static PyObject* get_process_name(PyObject* self, PyObject* args);
+static PyObject* get_process_cmdline(PyObject* self, PyObject* args);
+static PyObject* get_process_ppid(PyObject* self, PyObject* args);
+static PyObject* get_process_uid(PyObject* self, PyObject* args);
+static PyObject* get_process_gid(PyObject* self, PyObject* args);
+static PyObject* get_cpu_times(PyObject* self, PyObject* args);
+static PyObject* get_process_create_time(PyObject* self, PyObject* args);
+static PyObject* get_memory_info(PyObject* self, PyObject* args);
+static PyObject* get_process_num_threads(PyObject* self, PyObject* args);
+
+// --- system-related functions
+static int pid_exists(long pid);
+static PyObject* get_pid_list(PyObject* self, PyObject* args);
+static PyObject* get_num_cpus(PyObject* self, PyObject* args);
+static PyObject* get_total_phymem(PyObject* self, PyObject* args);
+static PyObject* get_avail_phymem(PyObject* self, PyObject* args);
+static PyObject* get_total_virtmem(PyObject* self, PyObject* args);
+static PyObject* get_avail_virtmem(PyObject* self, PyObject* args);
+static PyObject* get_system_cpu_times(PyObject* self, PyObject* args);
+
« no previous file with comments | « third_party/psutil/psutil/_psutil_mswindows.c ('k') | third_party/psutil/psutil/_psutil_osx.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698