cmd/free: add nused/nfree field in command free

Change-Id: I74aa4b1e7394a17c3b117322a4cc24aa52aac3b8
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
Jiuzhu Dong
2021-04-28 11:05:20 +08:00
committed by Brennan Ashton
parent 7a49fade03
commit fea1da2f53
4 changed files with 23 additions and 8 deletions
+1
View File
@@ -40,6 +40,7 @@ struct mallinfo
int arena; /* This is the total size of memory allocated
* for use by malloc in bytes. */
int ordblks; /* This is the number of free (not in use) chunks */
int aordblks; /* This is the number of allocated (in use) chunks */
int mxordblk; /* Size of the largest free (not in use) chunk */
int uordblks; /* This is the total size of memory occupied by
* chunks handed out by malloc. */