def _collect_gc_stats()

in runmetrics/stats_collector.py [0:0]


    def _collect_gc_stats(self):
        if gc.isenabled():
            self._gc_enabled.set(1)
        else:
            self._gc_enabled.set(0)

        stats = gc.get_stats()
        threshold = gc.get_threshold()
        count = gc.get_count()

        for i in range(0, 3):
            self._gc_gen[i]["collections"].set(stats[i]["collections"])
            self._gc_gen[i]["collected"].set(stats[i]["collected"])
            self._gc_gen[i]["uncollectable"].set(stats[i]["uncollectable"])
            self._gc_gen[i]["threshold"].set(threshold[i])
            self._gc_gen[i]["count"].set(count[i])