| 1 |
/* |
| 2 |
* Copyright (c) 2009, Giampaolo Rodola'. All rights reserved. |
| 3 |
* Use of this source code is governed by a BSD-style license that can be |
| 4 |
* found in the LICENSE file. |
| 5 |
*/ |
| 6 |
|
| 7 |
#include <Python.h> |
| 8 |
#include <mach/mach_time.h> |
| 9 |
|
| 10 |
extern struct mach_timebase_info PSUTIL_MACH_TIMEBASE_INFO; |
| 11 |
|
| 12 |
int psutil_setup_osx(void); |
| 13 |
|
| 14 |
PyObject *psutil_boot_time(PyObject *self, PyObject *args); |
| 15 |
PyObject *psutil_cpu_count_cores(PyObject *self, PyObject *args); |
| 16 |
PyObject *psutil_cpu_count_logical(PyObject *self, PyObject *args); |
| 17 |
PyObject *psutil_cpu_freq(PyObject *self, PyObject *args); |
| 18 |
PyObject *psutil_cpu_stats(PyObject *self, PyObject *args); |
| 19 |
PyObject *psutil_cpu_times(PyObject *self, PyObject *args); |
| 20 |
PyObject *psutil_disk_io_counters(PyObject *self, PyObject *args); |
| 21 |
PyObject *psutil_disk_partitions(PyObject *self, PyObject *args); |
| 22 |
PyObject *psutil_disk_usage_used(PyObject *self, PyObject *args); |
| 23 |
PyObject *psutil_has_cpu_freq(PyObject *self, PyObject *args); |
| 24 |
PyObject *psutil_net_io_counters(PyObject *self, PyObject *args); |
| 25 |
PyObject *psutil_per_cpu_times(PyObject *self, PyObject *args); |
| 26 |
PyObject *psutil_pids(PyObject *self, PyObject *args); |
| 27 |
PyObject *psutil_proc_cmdline(PyObject *self, PyObject *args); |
| 28 |
PyObject *psutil_proc_cwd(PyObject *self, PyObject *args); |
| 29 |
PyObject *psutil_proc_environ(PyObject *self, PyObject *args); |
| 30 |
PyObject *psutil_proc_exe(PyObject *self, PyObject *args); |
| 31 |
PyObject *psutil_proc_kinfo_oneshot(PyObject *self, PyObject *args); |
| 32 |
PyObject *psutil_proc_memory_uss(PyObject *self, PyObject *args); |
| 33 |
PyObject *psutil_proc_name(PyObject *self, PyObject *args); |
| 34 |
PyObject *psutil_proc_net_connections(PyObject *self, PyObject *args); |
| 35 |
PyObject *psutil_proc_num_fds(PyObject *self, PyObject *args); |
| 36 |
PyObject *psutil_proc_open_files(PyObject *self, PyObject *args); |
| 37 |
PyObject *psutil_proc_pidtaskinfo_oneshot(PyObject *self, PyObject *args); |
| 38 |
PyObject *psutil_proc_threads(PyObject *self, PyObject *args); |
| 39 |
PyObject *psutil_sensors_battery(PyObject *self, PyObject *args); |
| 40 |
PyObject *psutil_swap_mem(PyObject *self, PyObject *args); |
| 41 |
PyObject *psutil_virtual_mem(PyObject *self, PyObject *args); |