Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Rename ProcessList to ProcessTable throughout | Nathan Scott | 2023-08-31 | 1 | -273/+0 |
| | | | | | | | | | | | | Following up with some discusson from a few months back, where it was proposed that ProcessTable is a better name. This data structure is definitely not a list ... if it was one-dimensional it'd be a set, but in practice it has much more in common with a two-dimensional table. The Process table is a familiar operating system concept for many people too so it resonates a little in that way as well. | ||||
* | Introduce Row and Table classes for screens beyond top-processes | Nathan Scott | 2023-08-30 | 1 | -11/+12 |
| | | | | | | | | | This commit refactors the Process and ProcessList structures such they each have a new parent - Row and Table, respectively. These new classes handle screen updates relating to anything that could be represented in tabular format, e.g. cgroups, filesystems, etc, without us having to reimplement the display logic repeatedly for each new entity. | ||||
* | Adapt platform code for the new Machine base class | Nathan Scott | 2023-05-08 | 1 | -263/+17 |
| | | | | | Move host-centric data to new derived <Platform>Machine classes, separate from process-list-centric data. | ||||
* | Introduce Machine class for host-specific info (split from ProcessList) | Nathan Scott | 2023-05-08 | 1 | -25/+39 |
| | | | | | | | | | | | First stage in sanitizing the process list structure so that htop can support other types of lists too (cgroups, filesystems, ...), in the not-too-distant future. This introduces struct Machine for system-wide information while keeping process-list information in ProcessList (now much less). Next step is to propogate this separation into each platform, to match these core changes. | ||||
* | Refactor and consolidate dynamic meters/columns pointers | Nathan Scott | 2023-04-06 | 1 | -2/+2 |
| | | | | | | | | This removes the duplication of dynamic meter/column hashtable pointers that has come in between the Settings and ProcessList structures - only one copy of these is needed. With the future planned dynamic screens feature adding another pointer, let us first clean this up before any further duplication happens. | ||||
* | Auto-size (normalized) CPU usage columns | Benny Baumann | 2022-03-06 | 1 | -0/+3 |
| | |||||
* | Introduce screen tabs | Hisham Muhammad | 2021-12-07 | 1 | -1/+1 |
| | | | | This is a forward port (by nathans) of Hisham's original code. | ||||
* | Tidy up process state handling | marcluque | 2021-11-02 | 1 | -14/+15 |
| | |||||
* | Memory leak on NetBSD when querying full command line | Benny Baumann | 2021-10-03 | 1 | -0/+2 |
| | |||||
* | Update license headers to explicitly say GPLv2+ | Daniel Lange | 2021-09-22 | 1 | -1/+1 |
| | |||||
* | NetBSD: scale CPU frequencies | Christian Göttsche | 2021-09-03 | 1 | -12/+16 |
| | | | | | | Use a value type of 'long int' to avoid ENOMEM failures of sysctl(3). Also check for "machdep.tsc_freq", scaled in MHz. | ||||
* | NetBSD: update process fields | Christian Göttsche | 2021-09-03 | 1 | -3/+14 |
| | | | | Populate fields to ttyname, minflt, majflt and processor. | ||||
* | Use proper metric to detect kernel threads | Benny Baumann | 2021-08-16 | 1 | -1/+1 |
| | | | | | | Querying kernel threads with `ps -o pid,lid,flags,state,lname -sp 0` gives that kernel threads have state `K` and flags have mask `0x20000` set. This corresponds to `LW_SYSTEM` in kernel which is mapped as `L_SYSTEM`/`P_SYSTEM` for userspace. | ||||
* | Build fix for NetBSD | fraggerfox | 2021-08-16 | 1 | -2/+2 |
| | |||||
* | NetBSD: Rework CPU counting. | fraggerfox | 2021-08-05 | 1 | -27/+75 |
| | |||||
* | Fix indentation style | nia | 2021-07-21 | 1 | -1/+1 |
| | |||||
* | netbsd: convert snprintf use to xSnprintf | nia | 2021-07-21 | 1 | -1/+1 |
| | |||||
* | netbsd: re-initialize freqSize before sysctlbyname() | nia | 2021-07-21 | 1 | -1/+3 |
| | |||||
* | netbsd: Remove conditional compilation of CPU frequency variables | nia | 2021-07-21 | 1 | -8/+2 |
| | |||||
* | netbsd: Support display of CPU frequency | nia | 2021-07-21 | 1 | -0/+63 |
| | |||||
* | Whitespace around operators | Benny Baumann | 2021-07-15 | 1 | -2/+2 |
| | |||||
* | netbsd: Fix display of in-use and cached memory | nia | 2021-07-13 | 1 | -8/+3 |
| | |||||
* | netbsd: Add dyanmicMeters stubs to fix the build | nia | 2021-07-13 | 1 | -2/+2 |
| | | | | Signed-off-by: Nia Alarie <nia@NetBSD.org> | ||||
* | Always update `proc->st_uid` + `proc->user` | BenBE | 2021-06-26 | 1 | -2/+5 |
| | | | Avoids issue #661. | ||||
* | Adds support for counting user and kernel threads. | fraggerfox | 2021-06-26 | 1 | -1/+8 |
| | |||||
* | Adds support for PROC_EXE and CWD. | fraggerfox | 2021-06-26 | 1 | -0/+43 |
| | |||||
* | Fixes minor whitespace issues and re-arrange headers to conform to style guide. | fraggerfox | 2021-06-26 | 1 | -1/+1 |
| | |||||
* | Implements the NetBSD specific changes for makeCommandStr refactor. | fraggerfox | 2021-06-26 | 1 | -10/+22 |
| | | | | Refer to #388 PR for more details. | ||||
* | Sets a non-NULL process state in case of kvm_getlwps(3) returns NULL. Thanks ↵ | fraggerfox | 2021-06-26 | 1 | -14/+17 |
| | | | | @cgzone. | ||||
* | Refactor saturatingSub() to be part of Macros.h | fraggerfox | 2021-06-26 | 1 | -4/+0 |
| | |||||
* | Renames variable from opl to npl for consistency. | fraggerfox | 2021-06-26 | 1 | -13/+13 |
| | |||||
* | Fix include paths and minor whitespace issues | fraggerfox | 2021-06-26 | 1 | -2/+3 |
| | |||||
* | Remove unwanted code, updates the comments | fraggerfox | 2021-06-26 | 1 | -90/+6 |
| | |||||
* | Update copyright notices | Benny Baumann | 2021-06-26 | 1 | -0/+2 |
| | |||||
* | Sync changes from master and fix minor warnings | fraggerfox | 2021-06-26 | 1 | -2/+2 |
| | |||||
* | Add NetBSD platform support without procfs dependency | fraggerfox | 2021-06-26 | 1 | -0/+398 |
- TODO, clean up the code base and update comments in code. |