in read_stall_retry/metrics_collector.py [0:0]
def get_memory_usage() -> float:
"""Retrieves memory usage of the current process in MiB."""
process = psutil.Process(os.getpid())
mem_info = process.memory_info()
return convert_bytes_to_mib(mem_info.rss)