HolyLib Wiki

luagc.GetSizeOfGCObject

 number luagc.GetSizeOfGCObject( any object, boolean recursive = false, table ignoreGCObjects = nil )

Description

Returns the memory size of the given object.

Recently Added

This was recently added in version (0.8 - DEV).

Arguments

1any object

Object to use

2boolean recursive = false

If recursive is set, then the size of referenced objects is added to the total result

3table ignoreGCObjects = nil

ignoreGCObjects - A sequential table inside which you can provide GC objects that should be ignored like the global table/_G

Returns

1number memorySize

total size in memory (in bytes)