New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

proc-process-inspector

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

proc-process-inspector

get basic process stats using procfs in linux

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

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

  • https://www.kernel.org/doc/Documentation/filesystems/proc.txt
  • http://www.linuxquestions.org/questions/linux-newbie-8/can-someone-explain-the-output-of-proc-pid-sched-4175412750/

What's being fetched currently

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

Keywords

process

FAQs

Package last updated on 14 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts