Fix compatibility with latest psutil version
astrofrog opened this issue · comments
get_cpu_percent
is now cpu_percent
Just a reminder about this issue which just hit me and looks like it shouldn't be too bad to fix!
@astrofrog - I fixed that on my local copy last week, to be able to use psutil, but I forgot to open a PR ! I can push that later today.
It seems to work for me with the latest dev version, and was going to do another release now.
@saimn - what kind of changes did you have to make?
@astrofrog - saimn@b6d2720
I pushed very quickly as I have to go. I had to use children
instead of get_children
and changes to get cpu/mem from subprocesses.
Thanks!
@astrofrog - thanks !
Yep, works for me now - thanks!
@joezuntz - thanks for confirming! psrecord 1.0 is now out, so closing this.