Skip to content

Commit 3b81991

Browse files
committed
improved process monitoring docs
1 parent 7e6975c commit 3b81991

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,11 @@ Currently process monitoring is supported only on Linux. To enable it use:
191191
enableProcessMonitoring([interval in seconds]);
192192
```
193193
The following metrics are generated every interval:
194-
+ **etime** - elapsed time since the process was started, in the form [[DD-]hh:]mm:ss
195-
+ **pcpu** - cpu utilization of the process in "##.#" format. Currently, it is the CPU time used divided by the time the process has been running (cputime/realtime ratio), expressed as a percentage. It will not add up to 100% unless you are lucky
196-
+ **pmem** - ratio of the process's resident set size to the physical memory on the machine, expressed as a percentage
197-
+ **bytesReceived** - the total number of bytes of data received by the process (per interface)
198-
+ **bytesTransmitted** - the total number of bytes of data transmitted by the process (per interface).
194+
+ **cpuUsedPercentage** - percentage of a core usage over time interval (from `gerrusage`)
195+
+ **involuntaryContextSwitches** - involuntary context switches over time interval (from `gerrusage`)
196+
+ **memoryUsagePercentage** - ratio of the process's resident set size to the physical memory on the machine, expressed as a percentage (from `ps`)
197+
+ **bytesReceived** - the total number of bytes of data received by the process per interface (from `/proc/[PID]/net/dev`)
198+
+ **bytesTransmitted** - the total number of bytes of data transmitted by the process per interface (from `/proc/[PID]/net/dev`).
199199
200200
## Code snippets
201201
Code snippets are available in [examples](examples/) directory.

0 commit comments

Comments
 (0)