mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-12 06:01:50 +09:00
command to see memory allocation status
This commit is contained in:
2
assets/disk0/malloc.js
Normal file
2
assets/disk0/malloc.js
Normal file
@@ -0,0 +1,2 @@
|
||||
let [blockSize, blockCount] = sys.getMallocStatus()
|
||||
println(`${blockSize * blockCount} bytes allocated (${blockCount} blocks with ${blockSize} bytes per block)`)
|
||||
Reference in New Issue
Block a user