con / duct

A helper to run a command, capture stdout/stderr and details about running
MIT License
1 stars 1 forks source link

Track Average CPU and Mem usage #41

Closed asmacdo closed 1 week ago

asmacdo commented 3 weeks ago

From @yarikoptic https://github.com/con/duct/issues/39#issuecomment-2149737855 I think it would be useful to have "average cpu%" probably more than "max cpu%" (spike) since that one I think most of them time would be some 100%. Average is a sum/number_of so you can keep adding and also keep track (increment number) on how many times you added to come up with a mean. The same could be done for memory (although there average is less useful but still might be)