mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-05 17:30:27 +00:00
Add Lua memory reporting to redbean
This commit is contained in:
parent
6cb8e241f7
commit
be0f03a23e
1 changed files with 3 additions and 0 deletions
|
@ -3132,6 +3132,9 @@ static char *ServeStatusz(void) {
|
|||
AppendLong1("lastmeltdown", shared->lastmeltdown);
|
||||
AppendLong1("workers", shared->workers);
|
||||
AppendLong1("assets.n", assets.n);
|
||||
#ifndef STATIC
|
||||
AppendLong1("lua.memory", lua_gc(L, LUA_GCCOUNT)*1024 + lua_gc(L, LUA_GCCOUNTB));
|
||||
#endif
|
||||
ServeCounters();
|
||||
AppendRusage("server", &shared->server);
|
||||
AppendRusage("children", &shared->children);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue