Measuring maximum memory while capturing stdout in Python using subprocess
Measuring maximum memory while capturing stdout in Python using subprocess Question: Is there a clean way to measure the maximum memory consumption of a subprocess while still capturing stdout (and ideally setting a timeout) using subprocess in Python? Capturing output and setting a timeout can easily done using functions of subprocess: output = subprocess.run(cmd, capture_output=True, …