Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Thread CPU utilisation under windows ?

Thread Tools
 
Search this Thread
 
Old 30 October 2003, 09:50 AM
  #1  
Trumble
Scooby Regular
Thread Starter
 
Trumble's Avatar
 
Join Date: Jun 2001
Location: MY99->MY02->996->MY06STI in Herts / Beds / Bucks
Posts: 1,271
Likes: 0
Received 0 Likes on 0 Posts
Question

Come on you windows system programmers !

Long shot I know - but does anyone know if it is possible to determine how much of the CPU a thread of a given process is using on Win2k onwards ?

I dont really mind if its a percentage of the cpu utilisation used by the process or whether its the system as a whole.

If it can be done I need it to be 'performant' and not impact the process I am looking at !

Phew

T.
Old 30 October 2003, 03:42 PM
  #2  
Edmund
Scooby Newbie
 
Edmund's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 27
Likes: 0
Received 0 Likes on 0 Posts
Post

I think 'Process viewer' from Visual Studio installation (for sure in version 6) can help you, although it does not present the data in a way you will like (no graphs, you will get only list of times for each thread), but I do not know anything better.
Old 30 October 2003, 03:53 PM
  #3  
GaryK
Scooby Regular
 
GaryK's Avatar
 
Join Date: Sep 1999
Location: Bedfordshire
Posts: 4,037
Likes: 0
Received 0 Likes on 0 Posts
Thumbs up

T.

You wont be able to do it on a pre-compiled .exe if (as will most likely be the case) it hasnt been compiled and linked with lots of extra debug information. Then you will need an external debugger with profiling (automatedQA corp. do one for VB and Delphi). What Im basically saying is if you dont have access to the source code its unlikely you can do thread level profiling.

Cheers

Gary
Old 30 October 2003, 08:27 PM
  #4  
Trumble
Scooby Regular
Thread Starter
 
Trumble's Avatar
 
Join Date: Jun 2001
Location: MY99->MY02->996->MY06STI in Herts / Beds / Bucks
Posts: 1,271
Likes: 0
Received 0 Likes on 0 Posts
Post

Edmund - I been there and its not really what I want - you need to manually refresh.

Gary - thanks - you've really confirmed what I felt would be the case - I do have source code but dont want to link in lots of debug info - it does slow the process down too much for a production environment.

I know what you're saying - looking at Optimizite Suite for java apps - or purify for other apps - they do interject new libs into the executable - or intervene the JVM at JPDA level.

Cheers

T.
Old 31 October 2003, 09:16 AM
  #5  
GaryK
Scooby Regular
 
GaryK's Avatar
 
Join Date: Sep 1999
Location: Bedfordshire
Posts: 4,037
Likes: 0
Received 0 Likes on 0 Posts
Cool

T.

Using Java? I could guess the timings: slow, slow and slower

Your in Beds too, cool, who do you work for?

cheers

Gary
Old 31 October 2003, 08:35 PM
  #6  
Trumble
Scooby Regular
Thread Starter
 
Trumble's Avatar
 
Join Date: Jun 2001
Location: MY99->MY02->996->MY06STI in Herts / Beds / Bucks
Posts: 1,271
Likes: 0
Received 0 Likes on 0 Posts
Cool


Now now !

Java rocks !!!

T.

PS. Work in Hemel - so could lots of people
PPS. I'm looking for a QA / Portations engineer.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
KAS35RSTI
Subaru
27
04 November 2021 07:12 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
28 December 2015 11:07 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
18 November 2015 07:03 AM
FuZzBoM
Wheels, Tyres & Brakes
16
04 October 2015 09:49 PM
Ganz1983
Subaru
5
02 October 2015 09:22 AM



Quick Reply: Thread CPU utilisation under windows ?



All times are GMT +1. The time now is 01:30 AM.