skip to content
==> include/mesh/proc_usage.h <==
1/* @ajax/mesh-proc-usage: a process's CPU ns (user + system, every thread) and
2 * resident bytes (mesh-host native.rs usage), read from /proc/<pid>/stat.
3 * macOS (proc_pidinfo) is not ported. */
4#ifndef MESH_PROC_USAGE_H
5#define MESH_PROC_USAGE_H
6
7#include <stdbool.h>
8#include <stdint.h>
9#include <sys/types.h>
10
11bool mesh_proc_usage(pid_t pid, uint64_t *cpu_ns, uint64_t *rss);
12
13#endif