aboutsummaryrefslogtreecommitdiff
path: root/contrib/top/commands.c
Commit message (Collapse)AuthorAgeFilesLines
* Allow per-CPU statistics to be toggled at runtime via the 'P' key.John Baldwin2011-07-111-0/+1
| | | | | | | | | | While here, make -P a toggle similar to other options such as -I. Reviewed by: arundel MFC after: 1 week Notes: svn path=/head/; revision=223936
* Add a new option to toggle the display of the system idle process (per-CPUJohn Baldwin2011-05-311-0/+1
| | | | | | | | | | | | | | idle threads). The process is displayed by default (subject to whether or not system processes are displayed) to preserve existing behavior. The system idle process can be hidden via the '-z' command line argument or the 'z' key while top is running. When it is hidden, top more closely matches the behavior of FreeBSD <= 4.x where idle time was not accounted to any process. MFC after: 2 weeks Notes: svn path=/head/; revision=222530
* Add 'jid' as a possible sort order to the help screen.Sergey Kandaurov2010-11-121-2/+4
| | | | | | | | | | PR: bin/150992 Submitted by: Frederic Culot <frederic at culot dot org> Approved by: avg (mentor) MFC after: 5 days Notes: svn path=/head/; revision=215186
* - s/jail id/jail ID/, acronyms should be in uppercase in general. Also,Rong-En Fan2007-05-041-1/+1
| | | | | | | | | | it is written this way in jail(8). Suggested by: brueffer Approved by: delphij (mentor, implicit) Notes: svn path=/head/; revision=169257
* - Add documentation notes for the 'a' option, forgotten in the previousStanislav Sedov2007-05-031-0/+1
| | | | | | | | | | | | commit. commands.c [1] top.X Suggested by: rafan [1] Notes: svn path=/head/; revision=169237
* - Add a new 'j' switch and runtime option to toggle display jail id forRong-En Fan2007-04-171-1/+2
| | | | | | | | | | | | | each process. - While I'm here, keep help message sorted by keys PR: 98489, 98975 Submitted by: clsung Approved by: delphij (mentor) MFC after: 2 weeks Notes: svn path=/head/; revision=168799
* Merge the CPU and WCPU columns in a single %6.2f column, add a new 'C'Giorgos Keramidas2005-05-181-0/+1
| | | | | | | | | | | | | | command that toggles between the two and update the ORDER_PCTCPU() macro to sort correctly by the visible "cpu" value. This saves 6 more columns in 80-column terminals, making things a lot better for the COMMAND column. Tested on: i386, sparc64 (panther), amd64 (sledge) Approved by: davidxu (in principle) Notes: svn path=/head/; revision=146342
* - Add a THR column to the process listing, that shows the number ofGiorgos Keramidas2005-04-141-1/+1
| | | | | | | | | | | | threads a process has. The THR column is disabled and disappears when 'H' is hit, because then every thread gets its own output line. - Allow sorting processes by "threads". Approved by: davidxu Inspired by: Jiawei Ye <leafy7382@gmail.com> Notes: svn path=/head/; revision=145073
* This patch merges the sort fields for both pages, so you can (forAlfred Perlstein2004-08-161-1/+1
| | | | | | | | | | | example) view io stats while sorting by process size. Also adds voluntary and involuntary context-switch stats to the io page because there was lots of room. Submitted by: Dan Nelson dnelson at allantgroup.com Notes: svn path=/head/; revision=133817
* document the 'I' and 't' commands in the help screen in top(1).Alfred Perlstein2004-07-121-2/+3
| | | | | | | Submitted by: Alex Vasylenko lxv omut.org Notes: svn path=/head/; revision=132038
* Make 'S' in interactive mode toggle display of system processes.Alfred Perlstein2004-07-121-0/+1
| | | | Notes: svn path=/head/; revision=132005
* Build upon the nice work of Alfred and add sorting capabilities toGiorgos Keramidas2004-07-081-1/+5
| | | | | | | | | the -m "io" mode of top. Approved by: alfred Notes: svn path=/head/; revision=131829
* Changes to allow top to decide whether or not to show multiple threads perJulian Elischer2003-07-171-0/+1
| | | | | | | | | | process. Option -H enables it and it is toggled at the interactive screen by 'H'. Submitted by: Jung-uk Kim <jkim@niksun.com> Notes: svn path=/head/; revision=117709
* Resolve conflict: We made a fix renaming a structure member error,David Malone2002-01-241-6/+8
| | | | | | | but it was renamed errnum on the vendor branch. Notes: svn path=/head/; revision=89755
* Merge from stable: support for the o, order, commandWolfram Schneider1998-08-121-1/+1
| | | | Notes: svn path=/head/; revision=38278
* Declared version_string() properly (1970's style).Bruce Evans1998-07-061-0/+1
| | | | Notes: svn path=/head/; revision=37451
* Reviewed by: William LeFebvre <wnl@groupsys.com>John Birrell1997-12-221-6/+6
| | | | | | | | | | Change errno -> error in local structure to avoid a clash with the thread-aware version of errno which is required for a thread-safe libc. Have discussed this with the author and he has agreed to this change. 8-) Notes: svn path=/head/; revision=31939
* This is the long-awaited import of top into the base system (actually,vendor/top/3.4Joerg Wunsch1997-03-231-0/+509
the src/contrib/top part right now). This tools is simply too system- dependant to maintain it in the ports collection. Notes: svn path=/vendor/top/dist/; revision=24139 svn path=/vendor/top/3.4/; revision=24141; tag=vendor/top/3.4