Available on hl
staticflags:EnumFlags<GcFlag>
@:hlNative("std","blocking")staticblocking(b:Bool):Void
Enter/leave a blocking section: when in a blocking section the thread cannot allocate any memory but other threads will not wait for it for collecting memory.
@:value({ fileName : "hlmemory.dump" })staticdumpMemory(fileName:String = "hlmemory.dump"):Void
Dump whole memory into target filename for analysis.
@:hlNative("std","gc_enable")staticenable(b:Bool):Void
@:hlNative("std","gc_major")staticmajor():Void
staticstats():{totalAllocated:Float, currentMemory:Float, allocationCount:Float}