@@ -292,26 +292,26 @@ void luaDoGc(lua_State * L, bool full)
292292 else {
293293 lua_gc (L, LUA_GCSTEP, 10 );
294294 }
295- #if defined(DEBUG)
296- if (L == lsScripts) {
297- static uint32_t lastgcSctipts = 0 ;
298- uint32_t gc = luaGetMemUsed (L);
299- if (gc > (lastgcSctipts + GC_REPORT_TRESHOLD) || (gc + GC_REPORT_TRESHOLD) < lastgcSctipts) {
300- lastgcSctipts = gc;
301- TRACE (" GC Use Scripts: %u bytes" , gc);
302- }
303- }
304- #if defined(COLORLCD)
305- if (L == lsWidgets) {
306- static uint32_t lastgcWidgets = 0 ;
307- uint32_t gc = luaGetMemUsed (L);
308- if (gc > (lastgcWidgets + GC_REPORT_TRESHOLD) || (gc + GC_REPORT_TRESHOLD) < lastgcWidgets) {
309- lastgcWidgets = gc;
310- TRACE (" GC Use Widgets: %u bytes + Extra %u" , gc, luaExtraMemoryUsage);
311- }
312- }
313- #endif
314- #endif
295+ // #if defined(DEBUG)
296+ // if (L == lsScripts) {
297+ // static uint32_t lastgcSctipts = 0;
298+ // uint32_t gc = luaGetMemUsed(L);
299+ // if (gc > (lastgcSctipts + GC_REPORT_TRESHOLD) || (gc + GC_REPORT_TRESHOLD) < lastgcSctipts) {
300+ // lastgcSctipts = gc;
301+ // TRACE("GC Use Scripts: %u bytes", gc);
302+ // }
303+ // }
304+ // #if defined(COLORLCD)
305+ // if (L == lsWidgets) {
306+ // static uint32_t lastgcWidgets = 0;
307+ // uint32_t gc = luaGetMemUsed(L);
308+ // if (gc > (lastgcWidgets + GC_REPORT_TRESHOLD) || (gc + GC_REPORT_TRESHOLD) < lastgcWidgets) {
309+ // lastgcWidgets = gc;
310+ // TRACE("GC Use Widgets: %u bytes + Extra %u", gc, luaExtraMemoryUsage);
311+ // }
312+ // }
313+ // #endif
314+ // #endif
315315 }
316316 else {
317317 // we disable Lua for the rest of the session
0 commit comments