The CPU Usage Tool (top.exe) is a thread usage tool. It displays the CPU usage of each thread currently running in the system.
s top [-a ] [ -i <number> ] [ -c ] [ -e <name.exe> ] [ -o] [ -t] [-l <number> ] [ -?]
Flags and Arguments
- Indicates to hide processes with <1% CPU and threads with <.1%.
- -i <number>
- Indicates to display an interval between snapshots in ms.
- Indicates continuous updates.
- -e <name.exe>
- Shows process with this name only.
- Specifies that the output is not ordered by CPU usage.
- Specifies that threads are not shown for each process.
- -l <number>
- Specifies the number of iterations.
- Displays usage information for the tool.
Source Code Location
If no parameter is specified, the tool orders output by CPU usage. The tool defaults to a single shot with 1000ms interval listing.
CPU utilization for a process is calculated from its child threads (no GetProcessTimes in Windows CE), so it may (but should not) error when threads are created and destroyed during the timing interval. The thread usages are always accurate, so if something else seems incorrect, trust the data for thread usages.
NOTE Filesys.exe has a thread that returns seemingly random values for CreationTime so that its ET will always seem incorrect. For Filesys.exe, you can ignore the values for CreationTime.
- s top –i –c –e thym.exe
- Displays CPU usage, displays an interval between snapshots in milliseconds, shows continuous updates, and displays information specifically for a process named thym.exe.