Coverage for src/galsbi/ucat/utils.py: 100%
4 statements
« prev ^ index » next coverage.py v7.6.9, created at 2024-12-13 03:24 +0000
« prev ^ index » next coverage.py v7.6.9, created at 2024-12-13 03:24 +0000
1# Copyright (C) 2017 ETH Zurich, Cosmology Research Group
3"""
4Created on Jan 03, 2020
5author: Joerg Herbel
6"""
8import os
10import psutil
13def memory_usage_psutil():
14 # return the memory usage in MB
16 return psutil.Process(os.getpid()).memory_info().rss / 1024**2