On Thu, Nov 04, 2004 at 09:00:12PM +0100, Per Hedbor () @ Pike (-) developers forum wrote:
Actully, removing it and adding a Debug.size( whataver ) would be sort of useful.
Why Debug? Taking size of (external representation of) object in bytes useful not only for debugging.
BTW, measuring current memory usage is also useful not only for debugging.
Something like Pike.sizeof() or Pike.memory_usage() would be more appropriate - who knows, may be, one day, existence of Debug module will depend on compile-time switch :)
Regards, /Al