import pygtk; pygtk.require("2.0")
import gtk
import gc
gc.set_debug(gc.DEBUG_STATS)

rootwin = gtk.gdk.get_default_root_window()

while (1):
    pmap = gtk.gdk.pixmap_foreign_new(rootwin.xid)
    gc.collect()
