package cpp.vm
Available on cpp
staticinlineread onlyMEM_INFO_CURRENT:Int = 2staticinlineread onlyMEM_INFO_LARGE:Int = 3staticinlineread onlyMEM_INFO_RESERVED:Int = 1staticinlineread onlyMEM_INFO_USAGE:Int = 0staticinlinecompact():VoidstaticinlinedoNotKill(inObject:Dynamic):Voidstaticinlineenable(inEnable:Bool):VoidstaticinlineenterGCFreeZone():VoidstaticinlineexitGCFreeZone():VoidstaticinlinegetNextZombie():DynamicstaticmemInfo(inWhatInfo:Int):IntIntroduced hxcpp_api_level 310
Returns stats on memory usage: - MEM_INFO_USAGE - estimate of how much is needed by program (at last collect) - MEM_INFO_RESERVED - memory allocated for possible use - MEM_INFO_CURRENT - memory in use, includes uncollected garbage.
This will generally saw-tooth between USAGE and RESERVED
MEM_INFO_LARGE - Size of separate pool used for large allocs. Included in all the above.staticmemInfo64(inWhatInfo:Int):FloatstaticmemUsage():Intstaticinlinerun(major:Bool):VoidstaticinlinesafePoint():VoidstaticsetFinalizer<T>(inObject:T, inFinalizer:Callable<T ‑> Void>):VoidstaticinlinesetMinimumFreeSpace(inBytes:Int):VoidstaticinlinesetMinimumWorkingMemory(inBytes:Int):VoidstaticinlinesetTargetFreeSpacePercentage(inPercentage:Int):Voidstatictrace(sought:Class<Dynamic>, printInstances:Bool = true):IntstaticversionCheck():Bool
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/cpp/vm/Gc.html