feat: add fileBacked
and purgeable
fields to process.getSystemMemoryInfo()
for macOS (#47628)
* fix: Optimize the value of memory.free in the return data of getSystemMemoryInfo(). * fix: Improve the value of memory in the return data of getSystemMemoryInfo(). * fix: complete API doc. * Update docs/api/process.md Co-authored-by: Will Anderson <will@itsananderson.com> * fix: update name to fileBacked. * fix: fix with code conflict --------- Co-authored-by: Will Anderson <will@itsananderson.com>
This commit is contained in:
parent
13d955a73e
commit
83a5ba1e2c
2 changed files with 8 additions and 1 deletions
|
@ -211,6 +211,10 @@ Returns `Object`:
|
|||
system.
|
||||
* `free` Integer - The total amount of memory not being used by applications or disk
|
||||
cache.
|
||||
* `fileBacked` Integer _macOS_ - The amount of memory that currently has been paged out to storage.
|
||||
Includes memory for file caches, network buffers, and other system services.
|
||||
* `purgeable` Integer _macOS_ - The amount of memory that is marked as "purgeable". The system can reclaim it
|
||||
if memory pressure increases.
|
||||
* `swapTotal` Integer _Windows_ _Linux_ - The total amount of swap memory in Kilobytes available to the
|
||||
system.
|
||||
* `swapFree` Integer _Windows_ _Linux_ - The free amount of swap memory in Kilobytes available to the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue