def _gc_callback()

in runmetrics/stats_collector.py [0:0]


    def _gc_callback(self, phase: str, info: Dict[str, int]) -> None:
        if phase == "start":
            self._gc_time_since_last.now()
            self._gc_start = time.monotonic()
        else:
            self._gc_pause.record(time.monotonic() - self._gc_start)