diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-09-29 09:42:13 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-09-29 09:42:13 -0300 |
| commit | dad808a73a98a23729614b8814728d76b4e5d577 (patch) | |
| tree | 945fabce1906c5f08fe6512476d7ca3d84017bca /ltests.c | |
| parent | ca7fd50a4ec2f1b41292f859ba0d5e52a2b22a5c (diff) | |
| download | lua-dad808a73a98a23729614b8814728d76b4e5d577.tar.gz lua-dad808a73a98a23729614b8814728d76b4e5d577.tar.bz2 lua-dad808a73a98a23729614b8814728d76b4e5d577.zip | |
new way to count `nblocks' for GC (try to count bytes).
Diffstat (limited to 'ltests.c')
| -rw-r--r-- | ltests.c | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltests.c,v 1.43 2000/09/25 14:48:42 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 1.44 2000/09/25 16:22:42 roberto Exp roberto $ |
| 3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -166,7 +166,8 @@ static int mem_query (lua_State *L) { | |||
| 166 | lua_pushnumber(L, memdebug_total); | 166 | lua_pushnumber(L, memdebug_total); |
| 167 | lua_pushnumber(L, memdebug_numblocks); | 167 | lua_pushnumber(L, memdebug_numblocks); |
| 168 | lua_pushnumber(L, memdebug_maxmem); | 168 | lua_pushnumber(L, memdebug_maxmem); |
| 169 | return 3; | 169 | lua_pushnumber(L, L->nblocks); |
| 170 | return 4; | ||
| 170 | } | 171 | } |
| 171 | else { | 172 | else { |
| 172 | memdebug_memlimit = luaL_check_int(L, 1); | 173 | memdebug_memlimit = luaL_check_int(L, 1); |
