I need to understand how much bandwidth is used by a program which I execute from a shell on Linux, via subprocess.run in Python.
Maybe a solution already exists, something similar to time?
petur@petur:~$ time foobarfoobar 0.00s user 0.00s system 80% cpu 0.003 totalIf not, what libraries would I need create such a utility? (To gather the total incoming and outgoing bandwidth during the execution of a program (including all of its threads/tasks)).