mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-30 12:50:58 +00:00
Add FreeRTOS per-task mem usage reporting
This commit is contained in:
1 parent
76a9853b12
commit
9bcba5db41
8 files changed
+212
-10
No files matched your search
+1
-5
@@ -106,11 +106,7 @@ static void mg_mdash_rpc_get_info(struct mg_rpc_req *r) {
|
||||
}
|
||||
|
||||
static void mg_mdash_rpc_mem_stats(struct mg_rpc_req *r) {
|
||||
mg_rpc_ok(r, "{%m:%zu,%m:%zu,%m:%zu,%m:%zu}", //
|
||||
MG_ESC("stack_used"), (size_t) MG_HEALTH_STACK_USED, //
|
||||
MG_ESC("stack_total"), (size_t) MG_HEALTH_STACK_TOTAL, //
|
||||
MG_ESC("heap_used"), (size_t) MG_HEALTH_HEAP_USED, //
|
||||
MG_ESC("heap_total"), (size_t) MG_HEALTH_HEAP_TOTAL);
|
||||
mg_rpc_ok(r, "%M", mg_print_mem_stats);
|
||||
}
|
||||
|
||||
static void mg_mdash_rpc_ota_begin(struct mg_rpc_req *r) {
|
||||
|
||||
Reference in new issue
Block a user