Gc

package cpp.vm

Available on cpp

Static variables

staticinlineread onlyMEM_INFO_CURRENT:Int = 2

staticinlineread onlyMEM_INFO_LARGE:Int = 3

staticinlineread onlyMEM_INFO_RESERVED:Int = 1

staticinlineread onlyMEM_INFO_USAGE:Int = 0

Static methods

staticinlinecompact():Void

staticinlinedoNotKill(inObject:Dynamic):Void

staticinlineenable(inEnable:Bool):Void

staticinlineenterGCFreeZone():Void

staticinlineexitGCFreeZone():Void

staticinlinegetNextZombie():Dynamic

staticmemInfo(inWhatInfo:Int):Int

Introduced 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):Float

staticmemUsage():Int

staticinlinerun(major:Bool):Void

staticinlinesafePoint():Void

staticsetFinalizer<T>(inObject:T, inFinalizer:Callable<T ‑> Void>):Void

staticinlinesetMinimumFreeSpace(inBytes:Int):Void

staticinlinesetMinimumWorkingMemory(inBytes:Int):Void

staticinlinesetTargetFreeSpacePercentage(inPercentage:Int):Void

statictrace(sought:Class<Dynamic>, printInstances:Bool = true):Int

staticversionCheck():Bool

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/cpp/vm/Gc.html