summaryrefslogtreecommitdiff
path: root/psutil/_psutil_sunos.c
diff options
context:
space:
mode:
Diffstat (limited to 'psutil/_psutil_sunos.c')
-rw-r--r--psutil/_psutil_sunos.c63
1 files changed, 21 insertions, 42 deletions
diff --git a/psutil/_psutil_sunos.c b/psutil/_psutil_sunos.c
index 2e0bd943..42a1ffe8 100644
--- a/psutil/_psutil_sunos.c
+++ b/psutil/_psutil_sunos.c
@@ -1635,52 +1635,31 @@ error:
static PyMethodDef
PsutilMethods[] = {
// --- process-related functions
- {"proc_basic_info", psutil_proc_basic_info, METH_VARARGS,
- "Return process ppid, rss, vms, ctime, nice, nthreads, status and tty"},
- {"proc_name_and_args", psutil_proc_name_and_args, METH_VARARGS,
- "Return process name and args."},
- {"proc_environ", psutil_proc_environ, METH_VARARGS,
- "Return process environment."},
- {"proc_cpu_times", psutil_proc_cpu_times, METH_VARARGS,
- "Return process user and system CPU times."},
- {"proc_cred", psutil_proc_cred, METH_VARARGS,
- "Return process uids/gids."},
- {"query_process_thread", psutil_proc_query_thread, METH_VARARGS,
- "Return info about a process thread"},
- {"proc_memory_maps", psutil_proc_memory_maps, METH_VARARGS,
- "Return process memory mappings"},
- {"proc_num_ctx_switches", psutil_proc_num_ctx_switches, METH_VARARGS,
- "Return the number of context switches performed by process"},
- {"proc_cpu_num", psutil_proc_cpu_num, METH_VARARGS,
- "Return what CPU the process is on"},
+ {"proc_basic_info", psutil_proc_basic_info, METH_VARARGS},
+ {"proc_cpu_num", psutil_proc_cpu_num, METH_VARARGS},
+ {"proc_cpu_times", psutil_proc_cpu_times, METH_VARARGS},
+ {"proc_cred", psutil_proc_cred, METH_VARARGS},
+ {"proc_environ", psutil_proc_environ, METH_VARARGS},
+ {"proc_memory_maps", psutil_proc_memory_maps, METH_VARARGS},
+ {"proc_name_and_args", psutil_proc_name_and_args, METH_VARARGS},
+ {"proc_num_ctx_switches", psutil_proc_num_ctx_switches, METH_VARARGS},
+ {"query_process_thread", psutil_proc_query_thread, METH_VARARGS},
// --- system-related functions
- {"swap_mem", psutil_swap_mem, METH_VARARGS,
- "Return information about system swap memory."},
- {"users", psutil_users, METH_VARARGS,
- "Return currently connected users."},
- {"disk_partitions", psutil_disk_partitions, METH_VARARGS,
- "Return disk partitions."},
- {"per_cpu_times", psutil_per_cpu_times, METH_VARARGS,
- "Return system per-CPU times."},
- {"disk_io_counters", psutil_disk_io_counters, METH_VARARGS,
- "Return a Python dict of tuples for disk I/O statistics."},
- {"net_io_counters", psutil_net_io_counters, METH_VARARGS,
- "Return a Python dict of tuples for network I/O statistics."},
- {"boot_time", psutil_boot_time, METH_VARARGS,
- "Return system boot time in seconds since the EPOCH."},
- {"cpu_count_cores", psutil_cpu_count_cores, METH_VARARGS,
- "Return the number of CPU cores on the system."},
- {"net_connections", psutil_net_connections, METH_VARARGS,
- "Return TCP and UDP syste-wide open connections."},
- {"net_if_stats", psutil_net_if_stats, METH_VARARGS,
- "Return NIC stats (isup, duplex, speed, mtu)"},
- {"cpu_stats", psutil_cpu_stats, METH_VARARGS,
- "Return CPU statistics"},
+ {"boot_time", psutil_boot_time, METH_VARARGS},
+ {"cpu_count_cores", psutil_cpu_count_cores, METH_VARARGS},
+ {"cpu_stats", psutil_cpu_stats, METH_VARARGS},
+ {"disk_io_counters", psutil_disk_io_counters, METH_VARARGS},
+ {"disk_partitions", psutil_disk_partitions, METH_VARARGS},
+ {"net_connections", psutil_net_connections, METH_VARARGS},
+ {"net_if_stats", psutil_net_if_stats, METH_VARARGS},
+ {"net_io_counters", psutil_net_io_counters, METH_VARARGS},
+ {"per_cpu_times", psutil_per_cpu_times, METH_VARARGS},
+ {"swap_mem", psutil_swap_mem, METH_VARARGS},
+ {"users", psutil_users, METH_VARARGS},
// --- others
- {"set_debug", psutil_set_debug, METH_VARARGS,
- "Enable or disable PSUTIL_DEBUG messages"},
+ {"set_debug", psutil_set_debug, METH_VARARGS},
{NULL, NULL, 0, NULL}
};