[bmx] GC Debug output by tonyg [ 1+ years ago ]

Started by BlitzBot, June 29, 2017, 00:28:43

Previous topic - Next topic

BlitzBot

Title : GC Debug output
Author : tonyg
Posted : 1+ years ago

Description : GCSetMode 4 seems to have been removed at 1.22. This can activate the GC debug mode and outputs messages with GCCollect(). Not sure how useful they are but there you have it...

Code :
Code (blitzmax) Select
Extern
Function bbGCSetDebug(mode:Int)
EndExtern

Type test
Field x:Int=5
EndType
'GCSetMode 4
Local mytest:test=New test
bbGCSetDebug(1)
Print GCCollect()
Print GCMemAlloced()
DebugLog(mytest.x)


Comments : none...