Universal get memory stats.
Supports from browser (Chrome only) and NodeJs environments.
Console the stats in tables.
This is the memory stats interface, not that according the environment no all properties have values, some of them might be null.
interface IMemoryStats {
// all are in mb
residentSetState: number;
heapTotal: number;
heapUsed: number;
boundCppObjects: number;
}
- rss stands for Resident Set Size, it is the total memory allocated for the process execution
- heapTotal is the total size of the allocated heap
- heapUsed is the actual memory used during the execution of our process
- external refers to the memory usage of C++ objects bound to JavaScript objects managed by V8