Skip to content
Snippets Groups Projects
Commit be8e48e7 authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

Merge remote-tracking branch 'origin/master' into 1.6

parents 4da3337f bab76d2d
No related branches found
No related tags found
No related merge requests found
......@@ -239,6 +239,17 @@ lbox_fiber_statof(struct fiber *f, void *cb_ctx)
lua_pushnumber(L, f->csw);
lua_settable(L, -3);
lua_pushliteral(L, "memory");
lua_newtable(L);
lua_pushstring(L, "used");
lua_pushnumber(L, region_used(&f->gc));
lua_settable(L, -3);
lua_pushstring(L, "total");
lua_pushnumber(L, region_total(&f->gc) + f->coro.stack_size +
sizeof(struct fiber));
lua_settable(L, -3);
lua_settable(L, -3);
#ifdef ENABLE_BACKTRACE
lua_pushstring(L, "backtrace");
lua_newtable(L);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment