Re: thread CPU usage monitor?

2015-03-27 Thread René J . V . Bertin
On Friday March 27 2015 08:26:13 James Linder wrote:

In any event it is
TemperatureMonitor.dmg

The one that is nowadays called Hardware Monitor, from Bresink Software? I have 
the menubar version running since I discovered it years ago, I never 
realised/noticed it could monitor process internals as well as the computer 
internals :)

Jason: I already linked to a StackOverflow thread showing how to calculate 
process CPU load from individual thread loads. If I'm going to break out a 
source editor and compiler I might just as well see use that code to hack an 
existing utility that already has relevant functionality I can pervert :)
This is not important enough ATM to write something from scratch, much as it'd 
be a nice exercise.

R.
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: thread CPU usage monitor?

2015-03-26 Thread René J . V . Bertin
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).

R.
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: thread CPU usage monitor?

2015-03-26 Thread James Linder

 On 27 Mar 2015, at 3:00 am, macports-users-requ...@lists.macosforge.org wrote:
 
 
 On Tuesday March 24 2015 15:30:19 Daniel J. Luke wrote:
 On Mar 24, 2015, at 1:59 PM, Mihai Moldovan io...@macports.org wrote:
 I don't know of any application for OS X to get this kind of information
 out of the box, sorry.
 ps -M ?
 
 Instruments  Select Application  Multicore  Tread States ?
 /Applications/Xcode.app/Contents/Applications/Instruments.app

God’s gift to Mac programming (sorry for the sarcasim) makes an app that gives 
all the detail. Since the motherboards are based on standard boards maybe he 
discovered how to read the IIC stream. In any event it is
TemperatureMonitor.dmg

James
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: thread CPU usage monitor?

2015-03-26 Thread Jason Mitchell
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.
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: thread CPU usage monitor?

2015-03-25 Thread Jason Mitchell
 On Tuesday March 24 2015 15:30:19 Daniel J. Luke wrote:
  On Mar 24, 2015, at 1:59 PM, Mihai Moldovan io...@macports.org wrote:
  I don't know of any application for OS X to get this kind of information
  out of the box, sorry.
 ps -M ?

Instruments  Select Application  Multicore  Tread States ?
/Applications/Xcode.app/Contents/Applications/Instruments.app
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: thread CPU usage monitor?

2015-03-24 Thread Mihai Moldovan
On 24.03.2015 06:39 PM, Pierre Malard wrote:
 Their is a lot of utilities like « MenuMeters » (http://www.ragingmenace.com) 
 which can dodo that.
 A other Mac OS X integrated tool is « Activity Monitor » which can give you a 
 lot of information about system.
Neither MenuMeters nor the Activity Monitor utility can show information
on a per-THREAD basis.

I don't know of any application for OS X to get this kind of information
out of the box, sorry.

A rather ugly workaround may be running spindump on the to-be-debugged
process. This will list all threads, together with the time spent on
each function. It's not top-like, though, and only a momentary snapshot.



Mihai



signature.asc
Description: OpenPGP digital signature
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: thread CPU usage monitor?

2015-03-24 Thread Christopher Jones
Hi,

 On 24 Mar 2015, at 5:39pm, Pierre Malard p...@teledetection.fr wrote:
 
 Their is a lot of utilities like « MenuMeters » (http://www.ragingmenace.com) 
 which can dodo that.
 A other Mac OS X integrated tool is « Activity Monitor » which can give you a 
 lot of information about system.

Can’t be sure but I am guessing Rene already knows about Activity Monitor… As 
far as I know it cannot do exactly what was asked, which is show info on 
threads ? 

Have you tried htop ? It seems to claim to be able to do thus, and MacPorts has 
a port for it ;)

Chris

 
 
 Le 24 mars 2015 à 16:50, René J.V. Bertin rjvber...@gmail.com a écrit :
 
 Hi,
 
 On MS Windows there's a Process Explorer that allows you to monitor the CPU 
 usage of each thread in an application, which can be quite useful. Googling 
 the topic I did find a code snippet showing how to query this information on 
 OS X, but no ready-to-use utility that displays this information top-like.
 
 Does such a utility exist?
 
 Thanks,
 R.
 ___
 macports-users mailing list
 macports-users@lists.macosforge.org
 https://lists.macosforge.org/mailman/listinfo/macports-users
 
 --
 Pierre Malard
 
   «A force de faire la rue on est devenu le caniveau»
  Abd Al Malik - Céline
   |\  _,,,---,,_
   /,`.-'`'-.  ;-;;,_
  |,4-  ) )-,_. ,\ (  `'-'
 '---''(_/--'  `-'\_)  πr
 
 perl -e '$_=q#: 3|\ 5_,3-3,2_: 3/,`.'''`''' 5-.  ;-;;,_:  |,A-  ) )-,_. 
 ,\ (  `'''-''': '''-3'''2(_/--'''  `-'''\_): 
 24πr::#;y#:#\n#;s#(\D)(\d+)#$1x$2#ge;print'
 - -- Ce message n’engage que son auteur --
 
 ___
 macports-users mailing list
 macports-users@lists.macosforge.org
 https://lists.macosforge.org/mailman/listinfo/macports-users



smime.p7s
Description: S/MIME cryptographic signature
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: thread CPU usage monitor?

2015-03-24 Thread René J . V . Bertin
On Tuesday March 24 2015 18:03:16 Christopher Jones wrote:

 Can’t be sure but I am guessing Rene already knows about Activity Monitor…

I guess you guessed right :)

 As far as I know it cannot do exactly what was asked, which is show info on 
 threads ? 

If it can, I (nor Mihai) don't know about it ...
Except of course that it has a sample option which might be a bit overkill.

 Have you tried htop ? It seems to claim to be able to do thus, and MacPorts 
 has a port for it ;)

Yes, and I re-read the manual before posting.I don't see a claim. It mentions 
options to hide kernel or user threads, but that's a Linux option AFAIK, where 
some threads can indeed show up as individual processes.
Actually that's the only way I know on Linux to monitor per-thread CPU usage...

R.
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: thread CPU usage monitor?

2015-03-24 Thread Mihai Moldovan
On 24.03.2015 07:03 PM, Christopher Jones wrote:
 Can’t be sure but I am guessing Rene already knows about Activity Monitor… As 
 far as I know it cannot do exactly what was asked, which is show info on 
 threads ? 

 Have you tried htop ? It seems to claim to be able to do thus, and MacPorts 
 has a port for it ;)

Unfortunately, I'm a vivid user of htop and it looks like it's not
showing individual threads on OS X, even if configured to not hide
userland or kernel threads. Believe me, I would notice 85 firefox
threads in the output.

This may be an htop-OS X-limitation.



Mihai





signature.asc
Description: OpenPGP digital signature
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: thread CPU usage monitor?

2015-03-24 Thread Daniel J. Luke
 On Mar 24, 2015, at 1:59 PM, Mihai Moldovan io...@macports.org wrote:
 I don't know of any application for OS X to get this kind of information
 out of the box, sorry.

ps -M ?


--
Daniel J. Luke  
 
++  
  
| * dl...@geeklair.net * |  

| *-- http://www.geeklair.net -* |  

++  
  
|   Opinions expressed are mine and do not necessarily   |  

|  reflect the opinions of my employer.  |  

++



___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: thread CPU usage monitor?

2015-03-24 Thread Dave Horsfall
On Tue, 24 Mar 2015, Pierre Malard wrote:

 Their is a lot of utilities like « MenuMeters » 
 (http://www.ragingmenace.com) which can dodo that. A other Mac OS X 
 integrated tool is « Activity Monitor » which can give you a lot of 
 information about system.

There's also iStat Menus; it's cheap, and you can get a trial version.

Disclaimer: just a satisfied customer, contents may settle, contains nuts.

-- 
Dave Horsfall DTM (VK2KFU)   Those who don't understand security will suffer.
http://www.horsfall.org/spam.html (and check the home page whilst you're there)___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: thread CPU usage monitor?

2015-03-24 Thread Pierre Malard
Their is a lot of utilities like « MenuMeters » (http://www.ragingmenace.com) 
which can dodo that.
A other Mac OS X integrated tool is « Activity Monitor » which can give you a 
lot of information about system.


 Le 24 mars 2015 à 16:50, René J.V. Bertin rjvber...@gmail.com a écrit :
 
 Hi,
 
 On MS Windows there's a Process Explorer that allows you to monitor the CPU 
 usage of each thread in an application, which can be quite useful. Googling 
 the topic I did find a code snippet showing how to query this information on 
 OS X, but no ready-to-use utility that displays this information top-like.
 
 Does such a utility exist?
 
 Thanks,
 R.
 ___
 macports-users mailing list
 macports-users@lists.macosforge.org
 https://lists.macosforge.org/mailman/listinfo/macports-users

--
Pierre Malard

   «A force de faire la rue on est devenu le caniveau»
  Abd Al Malik - Céline
   |\  _,,,---,,_
   /,`.-'`'-.  ;-;;,_
  |,4-  ) )-,_. ,\ (  `'-'
 '---''(_/--'  `-'\_)  πr

perl -e '$_=q#: 3|\ 5_,3-3,2_: 3/,`.'''`''' 5-.  ;-;;,_:  |,A-  ) )-,_. ,\ 
(  `'''-''': '''-3'''2(_/--'''  `-'''\_): 
24πr::#;y#:#\n#;s#(\D)(\d+)#$1x$2#ge;print'
- -- Ce message n’engage que son auteur --



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: thread CPU usage monitor?

2015-03-24 Thread Ludwig
On Tue, 24 Mar 2015, Mihai Moldovan wrote:

 On 24.03.2015 06:39 PM, Pierre Malard wrote:
  Their is a lot of utilities like « MenuMeters » 
  (http://www.ragingmenace.com) which can dodo that.
  A other Mac OS X integrated tool is « Activity Monitor » which can give you 
  a lot of information about system.
 Neither MenuMeters nor the Activity Monitor utility can show information
 on a per-THREAD basis.
 
 I don't know of any application for OS X to get this kind of information
 out of the box, sorry.


htop can monitor threads.



___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: thread CPU usage monitor?

2015-03-24 Thread René J . V . Bertin
On Tuesday March 24 2015 15:30:19 Daniel J. Luke wrote:
  On Mar 24, 2015, at 1:59 PM, Mihai Moldovan io...@macports.org wrote:
  I don't know of any application for OS X to get this kind of information
  out of the box, sorry.
 
 ps -M ?

Indeed. I don't see a way to identify the threads though. Unless one can simply 
count, attach a debugger to the process and looked around in the thread 
corresponding to that number ...

R.
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users