Way to trace program execution?

M

Markkk

Is there some way to put a trace on a program to see exactly what it’s doing
when it’s running? I’ve got some programs that occasionally hog CPU time, and
I’d like to see why.
 
J

JS

Two tools:
1) Process Explorer
It could be a sub-process or application that's running in the background
and taking all the CPU resources.

To find and display what could be the problem try Process Explorer:
http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx

Once you have Process Explorer installed and running:
In the taskbar select View and check 'Show Process Tree' and the
'Show Lower Pane' options.
Then expand the process named 'Explorer' (click on the + sign)
In the column on the left named 'CPU', look for any high CPU usage.
Next click on the CPU column to sort the processes by %CPU usage
(Highest to Lowest).

Move the mouse cursor over any process,
you should see a popup with some detailed info.
Then mouse over the process that's using most or all the CPU %.
Then click on that process to highlight it,
Now that it's highlighted, right click and from the options listed select:
'Search Online'.
This should display what out there on the web about that process.
You can also double click on any process to open up a more detailed
'Properties' window.
Note: some entries like Explorer, System/Services, and Svchost
may need to be expanded to show the detail (sub processes),
in this case click on the + located to the left of the entry.

An alternate method when using Process Explorer
is to double click on the Graph just below the Menu bar.
This will open the 'System Information' window, which has a larger display
of all three graphs. Move your mouse over any spike in the
CPU Usage graph to see what process/application or service is the cause
of the spike in CPU usage.

2nd Tool)
Process Monitor:
http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx

Selectively monitors: Drive activity, Disk Activity, Registry Activity
and Processes. Use the 'Filter' option to eliminate background clutter.
 
V

VanguardLH

Markkk said:
Is there some way to put a trace on a program to see exactly what it¢s doing
when it¢s running? I¢ve got some programs that occasionally hog CPU time, and
I¢d like to see why.

Other than use a debugger (which requires a debug version of the program
or you have access to its code to step through its execution), you could
use a HIPS (host intrusion protection scheme) program to monitor what
*actions* a program attempts to make. Comodo and OA are examples of
firewalls that include HIPS (actually OA was HIPS that later added a
firewall). System Safety Monitor is another HIPS program. There are
several of them. When set to their highest setting, they should tell
you what the program is doing and ask your permission to do it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Windows explorer in overdrive, again 14
iTunes Clipping 3
Need help tracking hours 2
System Crash 3
Nasty File Overwrite 2
non-repairable clusters and unneeded partitions 8
Windows update 3
SUMIFS help 3

Top