Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Update license headers to explicitly say GPLv2+ | Daniel Lange | 2021-09-22 | 1 | -1/+1 |
| | |||||
* | FreeBSD: Implement CWD column | Benny Baumann | 2021-05-25 | 1 | -0/+1 |
| | |||||
* | Add ELAPSED process column | Christian Göttsche | 2021-05-23 | 1 | -1/+1 |
| | | | | | | | | | Add process columns showing the elapsed time since the process was started. Similar to STARTTIME, but shows the time passed since the process start instead of the fixed start time of the process. Closes https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=782636 | ||||
* | FreeBSD: add EXE and COMM columns and use merged command line helpers | Christian Göttsche | 2021-05-23 | 1 | -0/+2 |
| | |||||
* | Move kernel/userland thread handling to platform-independent implementation | Benny Baumann | 2021-05-23 | 1 | -4/+0 |
| | |||||
* | platform-dependent files included relative to main source directory | mayurdahibhate | 2021-05-10 | 1 | -1/+1 |
| | |||||
* | Rework TTY column | Christian Göttsche | 2021-04-14 | 1 | -13/+1 |
| | | | | | | | | | | * Rename internal identifier from TTY_NR to just TTY * Unify column header on platforms * Use devname(3) on BSD derivate to show the actual terminal, simplifies current FreeBSD implementation. * Use 'unsigned long int' as id type, to fit dev_t on Linux. Only on Solaris the terminal path is not yet resolved. | ||||
* | FreeBSD: drop minflt and implement majflt | Christian Göttsche | 2021-01-30 | 1 | -2/+1 |
| | |||||
* | FreeBSD: simplify kernel thread logic | Christian Göttsche | 2021-01-30 | 1 | -7/+1 |
| | |||||
* | FreeBSD: misc | Christian Göttsche | 2021-01-30 | 1 | -2/+3 |
| | |||||
* | Sort out the mess around column sorting that had accumulated over time | Daniel Lange | 2021-01-21 | 1 | -9/+9 |
| | |||||
* | Linux: use correct column alignment for wide fields | Christian Göttsche | 2021-01-11 | 1 | -8/+3 |
| | | | | | | | This affects: - PROC_COMM, PROC_EXE and CWD on Linux - JAIL on FreeBSD and DragonFlyBSD - ZONE on Solaris | ||||
* | Object: return int on comparison | Christian Göttsche | 2021-01-02 | 1 | -1/+1 |
| | | | | | Comparisons do, due to the new introduced shaceship-comparisons, only return -1, 0, 1 or the result of strcmp(). | ||||
* | Merge Process_pidColumns into Process_fields and rework auto-fit for ↵ | Christian Göttsche | 2020-12-19 | 1 | -20/+9 |
| | | | | PID-like columns | ||||
* | Rework enum ProcessField | Christian Göttsche | 2020-12-19 | 1 | -4/+3 |
| | | | | | | Use only one enum instead of a global and a platform specific one. Drop Platform_numberOfFields global variable. Set known size of Process_fields array | ||||
* | Split boilerplate and platform-independent field comparison | Benny Baumann | 2020-12-19 | 1 | -1/+1 |
| | | | | | | | | This acheives two things: - Allows for simple tie-breaking if values compare equal (needed to make sorting the tree-view stable) - Allows for platform-dependent overriding of the sort-order for specific fields Also fixes a small oversight on DragonFlyBSD when default-sorting. | ||||
* | Invert Process_compare resolution so that superclass matches run first | Hisham Muhammad | 2020-12-19 | 1 | -14/+7 |
| | | | | | | | | | | * This removes duplicated code that adjusts the sort direction from every OS-specific folder. * Most fields in a regular htop screen are OS-independent, so trying Process_compare first and only falling back to the OS-specific compareByKey function if it's an OS-specific field makes sense. * This will allow us to override the sortKey in a global way without having to edit each OS-specific file. | ||||
* | Split RichString_(append|appendn|write) into wide and ascii | Christian Göttsche | 2020-12-08 | 1 | -1/+1 |
| | | | | | | | | RichString_writeFrom takes a top spot during performance analysis due to the calls to mbstowcs() and iswprint(). Most of the time we know in advance that we are only going to print regular ASCII characters. | ||||
* | Rename virtual memory column from M_SIZE to M_VIRT | Christian Göttsche | 2020-11-21 | 1 | -1/+1 |
| | | | | Closes: #325 | ||||
* | IWYU update (FreeBSD) | Christian Goettsche | 2020-11-19 | 1 | -7/+6 |
| | |||||
* | Add process column for normalized CPU usage | Christian Göttsche | 2020-11-16 | 1 | -0/+1 |
| | | | | Shows the process CPU usage divided by the number of CPU cores | ||||
* | Introduce spaceship comparison for Processes | Christian Göttsche | 2020-11-15 | 1 | -3/+5 |
| | | | | | | | | | | | | | | | If currently two unsigned values are compared via `a - b`, in the case b is actually bigger than a, the result will not be an negative number (as -1 is expected) but a huge positive number as the subtraction is an unsigned subtraction. Avoid over-/underflow affected operations; use comparisons. Modern compilers will generate sane code, like: xor eax, eax cmp rdi, rsi seta al sbb eax, 0 ret | ||||
* | Embracing branches | Benny Baumann | 2020-11-02 | 1 | -2/+3 |
| | |||||
* | Spacing around operators | Benny Baumann | 2020-11-02 | 1 | -1/+1 |
| | |||||
* | FreeBSD: update Process | Christian Göttsche | 2020-10-29 | 1 | -13/+13 |
| | |||||
* | FreeBSD: rework tty process column | Christian Goettsche | 2020-10-29 | 1 | -1/+15 |
| | |||||
* | Hold only a const version of Settings in Process | Christian Göttsche | 2020-10-26 | 1 | -2/+2 |
| | |||||
* | Mark process parameter of Process_writeField consistently const | Christian Göttsche | 2020-10-26 | 1 | -3/+3 |
| | |||||
* | Mark remaining classes const | Christian Göttsche | 2020-10-13 | 1 | -1/+1 |
| | |||||
* | Mark process argument of Process_isThread const | Christian Göttsche | 2020-10-09 | 1 | -2/+2 |
| | |||||
* | Enable -Wcast-qual compiler warning | Christian Göttsche | 2020-10-06 | 1 | -6/+6 |
| | |||||
* | Update License consistently to GPLv2 as per COPYING file | Daniel Lange | 2020-10-05 | 1 | -1/+1 |
| | |||||
* | Axe automated header generation. | Zev Weiss | 2020-09-03 | 1 | -27/+0 |
| | | | | | | | | | | | | | | Reasoning: - implementation was unsound -- broke down when I added a fairly basic macro definition expanding to a struct initializer in a *.c file. - made it way too easy (e.g. via otherwise totally innocuous git commands) to end up with timestamps such that it always ran MakeHeader.py but never used its output, leading to overbuild noise when running what should be a null 'make'. - but mostly: it's just an awkward way of dealing with C code. | ||||
* | Merge branch 'hishamhm-pull-904' | Nathan Scott | 2020-08-20 | 1 | -1/+1 |
|\ | |||||
| * | Truncate overwide jail names on BSD. | Robert Crowston | 2019-04-17 | 1 | -1/+1 |
| | | |||||
* | | Widen ST_UID (UID) column to 5 chars to allow UIDs > 9999 without breaking ↵ | Daniel Lange | 2018-10-07 | 1 | -1/+1 |
|/ | | | | | | alignment Issue Github #841, Debian bug #910492 | ||||
* | Security review: check results of snprintf. | Hisham Muhammad | 2017-07-27 | 1 | -2/+2 |
| | | | | | Calls marked with xSnprintf shouldn't fail. Abort program cleanly if any of them does. | ||||
* | Issue #502 fix SID colunm header width | Kamyar Rasta | 2017-02-05 | 1 | -1/+1 |
| | |||||
* | Issue #502 update Session ID column | Kamyar Rasta | 2017-02-01 | 1 | -2/+2 |
| | |||||
* | Interpret TTY_NR column on Linux, | Hisham | 2016-10-01 | 1 | -1/+1 |
| | | | | | translate dev_t to major:minor on other platforms. Closes #316. | ||||
* | Suppress compiler warnings. | Hung-Yi Chen | 2016-02-13 | 1 | -2/+2 |
| | |||||
* | Check for failure in allocations. | Hisham | 2016-02-02 | 1 | -1/+1 |
| | |||||
* | Added preliminary attempt at jails support on FreeBSD - JID and JAIL (name) ↵ | Martin "eto" Misuth | 2015-09-30 | 1 | -5/+35 |
| | | | | | | | columns, somewhat more correct kernel "thread" detection. Seems FreeBSD kernel can spawn both kernel processes (what is what htop currently sees) and kernel threads. For now let's consider kernel processes kernel "threads". | ||||
* | fix calloc() calls | Christian Hesse | 2015-09-07 | 1 | -1/+1 |
| | | | | | | | * size_t nmemb (number of elements) first, then size_t size * do not assume char is size 1 but use sizeof() * allocate for char, not pointer to char (found by Michael McConville, fixes #261) | ||||
* | Make column width calculation dynamic. | Hisham Muhammad | 2015-08-20 | 1 | -26/+9 |
| | | | | Closes #228. | ||||
* | Fixes to use platform-specific compare routines. | Hisham Muhammad | 2015-04-09 | 1 | -5/+15 |
| | |||||
* | Major advances in FreeBSD port. | Hisham Muhammad | 2015-03-16 | 1 | -3/+10 |
| | |||||
* | Get FreeBSD tree to compile again with latest changes. | Hisham Muhammad | 2015-03-16 | 1 | -0/+134 |