def __init__(self, every=1):
        """Creates an instance of the RAM usage metric.

        :param every: seconds after which update the maximum RAM usage.
        """

        self._process_handle: Process = Process(os.getpid())
        """The process handle."""

        self.every = every

        self.stop_f = False
        """Flag to stop the thread."""

        self.max_usage = 0
        """
        Main metric result. Max RAM usage.
        """

        self.thread = None
        """
        Thread executing RAM monitoring code
        """
Creates an instance of the RAM usage metric.

        :param every: seconds after which update the maximum RAM usage.
        
avalanche/evaluation/metrics/ram_usage.py