1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-30 12:04:07 +00:00
freebsd/usr.bin/top
John Baldwin a90539544c Rework the notion of CPU used in top. In particular, for subsequent
displays after a pause, use the difference in runtime divided by the
length of the pause as the percentage of CPU used instead of the value
calculated by the kernel.  In addition, when determing if a process or
thread is idle or not, treat any process or thread that has used any
runtime or performed any context switches during the interval as busy.

Note that the percent CPU is calculated as a double and stored in an
array to avoid recalculating the value multiple times in the comparison
method used to sort processes in the CPU display.

Tested by:	Jamie Landeg-Jones <jamie@dyslexicfish.net>
Reviewed by:	emaste (earlier version)
MFC after:	1 week
2014-05-30 21:18:53 +00:00
..
machine.c Rework the notion of CPU used in top. In particular, for subsequent 2014-05-30 21:18:53 +00:00
Makefile Add -J command/flag to filter by jail name/jid. This will automatically 2014-05-02 23:30:39 +00:00
top.local.1 Add a new line to top that provides a brief summary of the ZFS ARC memory 2012-06-27 18:08:48 +00:00