MCPcopy Create free account
hub / github.com/GStreamer/gst-python / gctrack

Method gctrack

testsuite/common.py:46–53  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

44 _tracked_types = (Gst.MiniObject, Gst.Element, Gst.Pad, Gst.Caps)
45
46 def gctrack(self):
47 self.gccollect()
48 self._tracked = []
49 for obj in gc.get_objects():
50 if not isinstance(obj, self._tracked_types):
51 continue
52
53 self._tracked.append(obj)
54
55 def gccollect(self):
56 ret = 0

Callers 5

setUpMethod · 0.95
setUpMethod · 0.80
setUpMethod · 0.80
setUpMethod · 0.80
setUpMethod · 0.80

Calls 1

gccollectMethod · 0.95

Tested by 4

setUpMethod · 0.64
setUpMethod · 0.64
setUpMethod · 0.64
setUpMethod · 0.64