Closed astrofrog closed 7 years ago
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 - https://github.com/saimn/psrecord/commit/b6d2720992c8edc5897d969a112552bae65b2333
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!
@saimn - thanks, I've included your fixes in https://github.com/astrofrog/psrecord/pull/19, and added some tests for better coverage.
@joezuntz - the latest developer version should now work correctly (thanks to @saimn's fix). Can you confirm that this is the case? I'm planning on doing a release once the Travis OSX builds work again and I'm able to confirm that this all works fine from a CI point of view.
@astrofrog - thanks !
Yep, works for me now - thanks!
@joezuntz - thanks for confirming! psrecord 1.0 is now out, so closing this.
get_cpu_percent
is nowcpu_percent