process.memoryUsage()这几个参数都是什么意思
如题:这几个参数都是什么意思,{ rss: 21909504, heapTotal: 10481664, heapUsed: 5316664 }这些数字的单位是什么, kb 么?
2 回复
https://nodejs.org/api/process.html#process_process_memoryusage
The process.memoryUsage() method returns an object describing the memory usage of the Node.js process measured in bytes.
rss: 进程常驻内存 heapTotal:已申请的堆内存 heapUsed:已使用的量 单位都是字节