process.constrainedMemory()


版本历史
版本变更
v24.0.0

将此功能的稳定性指数从"实验"级别更改为"稳定"级别。

v22.0.0, v20.13.0

返回值与 uv_get_constrained_memory 对齐。

v19.6.0, v18.15.0

新增于: v19.6.0, v18.15.0

根据操作系统施加的限制获取进程可用的内存量(以字节为单位)。如果没有这样的约束,或者约束未知,则返回 0

\Gets the amount of memory available to the process (in bytes) based on limits imposed by the OS. If there is no such constraint, or the constraint is unknown, 0 is returned.

有关详细信息,请参阅 uv_get_constrained_memory

\See uv_get_constrained_memory for more information.

AltStyle によって変換されたページ (->オリジナル) /