Skip to content

Releases: 2kai2kai2/node-ps-data

Export resident set size function

Choose a tag to compare

@2kai2kai2 2kai2kai2 released this 29 Aug 19:26

The memRSS function gets the resident or working set size of the process's memory. This will generally be a better count of the memory solely used by the process (particularly on MacOS which otherwise counts the entire addressable space even if not allocated), but will not include 'virtual' memory.

Full Changelog: v1.4.0...v1.4.1

v1.4.0

Choose a tag to compare

@2kai2kai2 2kai2kai2 released this 07 Mar 01:00

What's Changed

  • Bump http-cache-semantics from 4.1.0 to 4.1.1 by @dependabot in #2
  • Add darwin-arm64 support (Apple Silicon)

Full Changelog: v1.3.1...v1.4.0

v1.3.1

Choose a tag to compare

@2kai2kai2 2kai2kai2 released this 27 Mar 21:57

What's Changed

Full Changelog: v1.3.0...v1.3.1

v1.3.0

Choose a tag to compare

@2kai2kai2 2kai2kai2 released this 22 Feb 21:59

File IO Stats

Added functions for retrieving total number of bytes read and written by a process.


Details

Windows:
Using GetProcessIoCounters() from <WinBase.h> with PROCESS_QUERY_LIMITED_INFORMATION permissions.

Linux:
Using the /proc/[pid]/io filesystem, which may require permissions.

MacOS:
Using proc_pid_rusage() from <libproc.h>.

v1.2.0

v1.2.0 Pre-release
Pre-release

Choose a tag to compare

@2kai2kai2 2kai2kai2 released this 07 Dec 00:18

MacOS Implementation

Details:
Using <libproc.h> function proc_pidinfo(PROC_PIDTASKINFO) we get data on MacOS process resource consumption.
The function is first available starting with MacOS 10.5 (Leopard), according to the header file.

Note that proc_pid_rusage() does not include full virtual memory usage, and was thus not used in the end.

v1.1.1

Choose a tag to compare

@2kai2kai2 2kai2kai2 released this 18 Nov 02:05

Ensuring consistency between Windows and Linux memory data.

Details:
Windows
Use "total memory" as sum of working set size and pagefile usage
Using system file psapi.h: sum of PROCESS_MEMORY_COUNTERS::WorkingSetSize and PROCESS_MEMORY_COUNTERS::PagefileUsage

Linux
Use /proc/[pid]/statm size (1)

v1.1.0

Choose a tag to compare

@2kai2kai2 2kai2kai2 released this 17 Nov 02:42

Add functions cpuUserTime(pid) and cpuKernelTime(pid) which get their respective portions of process CPU time. Their sum is equal to the value returned by cpuTime(pid).

v1.0.12

Choose a tag to compare

@2kai2kai2 2kai2kai2 released this 12 Nov 21:33

GitHub Actions Now Functional

Basically, npm publish was ignoring our prebuilds due to being in .gitignore, but now we have a separate .npmignore which takes precedence on publishing so we have separate ignores for git and the npm build.

Prebuildify with GitHub Actions

Pre-release

Choose a tag to compare

@2kai2kai2 2kai2kai2 released this 12 Nov 19:09
v1.0.11

Fix issues in npm-publish.yml