lua-utils: allocation tracking for the Lua object infra
authorKrisztian Litkey <kli@iki.fi>
Wed, 20 Nov 2013 01:14:05 +0000 (03:14 +0200)
committerKrisztian Litkey <kli@iki.fi>
Thu, 21 Nov 2013 15:48:41 +0000 (17:48 +0200)
commitaf5944a6d040ea2be8d78123ad14c8db22d56909
tree2adc3621814b146246f5bbafeb494bb26a20d030
parent38a55cf93fa1cf110e43f46260b0e49c9e466070
lua-utils: allocation tracking for the Lua object infra

If enabled, the object infra keeps track of all allocated and
still uncollected objects on a per classdef basis. Upon exit
all existing objects are dumped to stdout.

This behavior is enabled by setting __MURPHY_LUA_CONFIG="track=yes".
Setting it to any other value (than true, or on) or clearing the
environment variables disables object tracking.
src/core/lua-utils/object.c
src/core/lua-utils/object.h