PageRenderTime 81ms CodeModel.GetById 40ms app.highlight 2ms RepoModel.GetById 38ms app.codeStats 1ms

/psutil/arch/osx/process_info.h

http://psutil.googlecode.com/
C++ Header | 22 lines | 8 code | 4 blank | 10 comment | 0 complexity | 0cde7ea519663862008031f68b8939d1 MD5 | raw file
 1/*
 2 * $Id: process_info.h 1407 2012-06-30 17:14:54Z g.rodola@gmail.com $
 3 *
 4 * Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved.
 5 * Use of this source code is governed by a BSD-style license that can be
 6 * found in the LICENSE file.
 7 *
 8 * Helper functions related to fetching process information. Used by _psutil_osx
 9 * module methods.
10 */
11
12#include <Python.h>
13
14
15typedef struct kinfo_proc kinfo_proc;
16
17int get_proc_list(kinfo_proc **procList, size_t *procCount);
18int get_kinfo_proc(pid_t pid, struct kinfo_proc *kp);
19int get_argmax(void);
20int pid_exists(long pid);
21int psutil_proc_pidinfo(long pid, int flavor, void *pti, int size);
22PyObject* get_arg_list(long pid);