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

1# Copyright (C) 2017 ETH Zurich, Cosmology Research Group 

2 

3""" 

4Created on Jan 03, 2020 

5author: Joerg Herbel 

6""" 

7 

8import os 

9 

10import psutil 

11 

12 

13def memory_usage_psutil(): 

14 # return the memory usage in MB 

15 

16 return psutil.Process(os.getpid()).memory_info().rss / 1024**2