thread CPU usage monitor?
Jason Mitchell
jason-macports at maiar.org
Thu Mar 26 18:03:52 PDT 2015
On Thu, 26 Mar 2015 12:25:01 +0100, Ren? J.V. Bertin wrote:
> > On Wednesday March 25 2015 20:53:17 Jason Mitchell wrote:
> >Instruments > Select Application > Multicore > Tread States ?
> >/Applications/Xcode.app/Contents/Applications/Instruments.app
>
> Thanks, that might work. For the moment it doesn't allow me to attach
> to a running application, though, which makes it a bit cumbersome when
> not hunting down some issue that occurs during startup but rather
> something with the "idle" behaviour after doing a substantial amount
> of work (in the app).
Perhaps you could use dtruss/dtrace, following children/threads, and
compute what you need from relative on-cpu timestamps? Check '$ man -k
dtrace' to see if there's an 80% solution available to specialize.
It'll also probably take a little log parsing after collection too.
More information about the macports-users
mailing list