Closed yuxiaomao closed 6 months ago
https://github.com/HaxeFoundation/hashlink/pull/657 Count and get live objects of the given type in the GC. (It also works with other types than Class such as Enum, but should not be very common usage I think?)
Usage:
hl.Gc.getLiveObjects(h2d.col.Point.PointImpl, 5); hl.Gc.getLiveObjects(std.Type.resolveClass("h2d.col.PointImpl"), 5);
@Simn Is there anything special that need to be taken into accounts, or I'm free to merge?
std/hl is basically the Wild West to me, so feel free to go nuts! I only care about CI being green in that regard.
https://github.com/HaxeFoundation/hashlink/pull/657 Count and get live objects of the given type in the GC. (It also works with other types than Class such as Enum, but should not be very common usage I think?)
Usage: