add memory
Signed-off-by: splatter <splatterxl@outlook.ie>
This commit is contained in:
parent
cb617a8ed7
commit
788c01e81a
2 changed files with 37 additions and 25 deletions
8
native.ts
Normal file
8
native.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
|
||||
export function getMemory() {
|
||||
const memory = process.memoryUsage();
|
||||
return {
|
||||
heapUsed: memory.heapUsed,
|
||||
heapTotal: memory.heapTotal
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue