November 18, 2017, 11:08:12 PM

Author Topic: [bmx] GC Debug output by tonyg [ 1+ years ago ]  (Read 166 times)

Offline BlitzBot

  • Newbie
  • *
  • Posts: 0
[bmx] GC Debug output by tonyg [ 1+ years ago ]
« on: June 29, 2017, 12:28:43 AM »
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
  1. Extern
  2.         Function bbGCSetDebug(mode:Int)
  3. EndExtern
  4.  
  5. Type test
  6.         Field x:Int=5
  7. EndType
  8. 'GCSetMode 4
  9. Local mytest:test=New test
  10. bbGCSetDebug(1)
  11. Print GCCollect()
  12. Print GCMemAlloced()
  13. DebugLog(mytest.x)


Comments : none...