| 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 |
|
| 9 |
#define PSUTIL_TV2DOUBLE(t) (((t).tv_nsec * 0.000000001) + (t).tv_sec) |
| 10 |
int psutil_file_to_struct(char *path, void *fstruct, size_t size); |
| 11 |
|
| 12 |
PyObject *psutil_proc_basic_info(PyObject *self, PyObject *args); |
| 13 |
PyObject *psutil_proc_cpu_num(PyObject *self, PyObject *args); |
| 14 |
PyObject *psutil_proc_cpu_times(PyObject *self, PyObject *args); |
| 15 |
PyObject *psutil_proc_cred(PyObject *self, PyObject *args); |
| 16 |
PyObject *psutil_proc_environ(PyObject *self, PyObject *args); |
| 17 |
PyObject *psutil_proc_memory_maps(PyObject *self, PyObject *args); |
| 18 |
PyObject *psutil_proc_name_and_args(PyObject *self, PyObject *args); |
| 19 |
PyObject *psutil_proc_num_ctx_switches(PyObject *self, PyObject *args); |
| 20 |
PyObject *psutil_proc_query_thread(PyObject *self, PyObject *args); |