proc-process-inspector

get basic process stats using procfs in linux

Usage no npm install needed!

<script type="module">
  import procProcessInspector from 'https://cdn.skypack.dev/proc-process-inspector';
</script>

README

WAT?

Simple methods for asserting the state of processes.
Requires procfs. Tested only on Linux so far.

API

var insp = require('proc-process-inspector');

insp.getMemory({Number} pid, {Function} cb);
returns object with:
{Number} vmSize - in bytes
{Number} vmData - in bytes

insp.getCPU({Number} pid, {Function} cb);
returns object with:
{Number} sumExecRuntime - in ?

To know more

Reference

What's being fetched currently

  • status (memory stats) * VmSize
    • VmData
  • sched (cpu stats) * se.sum_exec_runtime