Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23131

How do I get the amount of bandwidth used during the execution of a Linux program?

$
0
0

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 total

If 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)).


Viewing all articles
Browse latest Browse all 23131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>