Cogl.debug_object_foreach_type

function debug_object_foreach_type(func: Cogl.DebugObjectForeachTypeCallback): void {
    // Gjs wrapper for cogl_debug_object_foreach_type()
}
  

Invokes func once for each type of object that Cogl uses and passes a count of the number of objects for that type. This is intended to be used solely for debugging purposes to track down issues with objects leaking.

Since 1.8

func

A callback function for each type