summaryrefslogtreecommitdiffstats
path: root/ProcessList.c
AgeCommit message (Collapse)Author
2021-01-31Improve handling when selected last process entryChristian Göttsche
If the last process entry is selected and the process dies, stay at the end of the list and do not jump to the start. Also if the last entry is selected keep, after rebuilding the process list due to a new scan, the last entry selected.
2021-01-21Sort out the mess around column sorting that had accumulated over timeDaniel Lange
2021-01-15RichString: implement safe rewindChristian Göttsche
The current rewind logic causes issues when rewinding over the short string optimization boundary.
2021-01-11Mark several non-modified pointer variables constChristian Göttsche
2021-01-10Exit follow mode cleanly after followed process diesChristian Göttsche
2021-01-07Show arrow indicating order of sorted process columnChristian Göttsche
2021-01-02Object: return int on comparisonChristian Göttsche
Comparisons do, due to the new introduced shaceship-comparisons, only return -1, 0, 1 or the result of strcmp().
2020-12-19Merge Process_pidColumns into Process_fields and rework auto-fit for ↵Christian Göttsche
PID-like columns
2020-12-19Separate tree and list sort ordersHisham Muhammad
Implements the suggestion from https://github.com/htop-dev/htop/issues/399#issuecomment-747861013 Thanks to the refactors from 0bd5c8fb5da and 6393baa74e5, this was really easy and clean to do. It maintains the "Tree view always by PID" option in the Settings, which results in some specific behaviors such as "clicking on the column header to exit tree view" and "picking a new sort order to exit tree view", for the sake of the muscle memory of long time htop users. :)
2020-12-19Add "Tree view is always sorted by PID" option to mimic htop 2 behaviorHisham Muhammad
2020-12-18Fix typoChristian Göttsche
2020-12-18ProcessList: save scan time in millisecondChristian Göttsche
The delay is saved in deciseconds, use a bigger resolution to avoid timing irregularities.
2020-12-18Support clock_gettime() on OSX El Capitan and earlierChristian Göttsche
2020-12-08Additional code simplificationBenny Baumann
Additional correction for #375
2020-12-08Split RichString_(append|appendn|write) into wide and asciiChristian Göttsche
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.
2020-12-06IWYU updateChristian Göttsche
2020-12-03Silence possible NULL dereferenceChristian Göttsche
Found by compiling with LTO ProcessList.c: In function ‘ProcessList_updateTreeSetLayer’: ProcessList.c:195:15: error: potential null pointer dereference [-Werror=null-dereference] 195 | if (proc->tree_depth == deep && proc->tree_left > left && proc->tree_right < right) { | ^ ProcessList.c:195:15: error: potential null pointer dereference [-Werror=null-dereference] ProcessList.c:195:15: error: potential null pointer dereference [-Werror=null-dereference]
2020-12-02Minor code streamliningBenny Baumann
2020-12-02Some minor spelling issuesBenny Baumann
2020-12-02Avoid expensive build of tree when not using itBenny Baumann
2020-12-02Avoid useless search for pid 0Benny Baumann
2020-12-02Reorder field initialization to group fields by taskBenny Baumann
2020-12-02Code style cleanup and documentation/commentsBenny Baumann
2020-12-02Use common values for initial size estimates for HashtablesBenny Baumann
2020-12-02Fix issue with inconsistent displayTreeSetMaxim Zhiburt
2020-12-02Implement sorting in tree modeMaxim Zhiburt
2020-11-24Include merge status with column title when enabledNarendran Gopalakrishnan
2020-11-24Improving Command display/sortNarendran Gopalakrishnan
2020-11-21fix indentChristian Göttsche
2020-11-16Apply patch from BenBE as per ↵Daniel Lange
https://github.com/htop-dev/htop/pull/241#issuecomment-720081138
2020-11-16Merge branch 'hili-new-old' of adsr/htop into highlight-new-old-processesDaniel Lange
2020-11-15Mark ProcessList_keyAt argument constChristian Göttsche
2020-11-02Embracing branchesBenny Baumann
2020-11-02Spacing around operatorsBenny Baumann
2020-10-31Address items from reviewAdam Saponara
2020-10-30Highlight new and old processes (#74)Adam Saponara
2020-10-26Hold only a const version of Settings in ProcessListChristian Göttsche
2020-10-19Continue to update generic data in paused modeChristian Göttsche
Generic data, as CPU and memory usage, are used by Meters. In paused mode they would stop receiving updates and especially Graph Meters would stop showing continuous data. Improves: #214 Closes: #253
2020-10-18Make all required includes explicitBenny Baumann
Information as seen by IWYU 0.12 + clang 9 on Linux
2020-10-16Rename StringUtils.[ch] to XUtils.[ch]Benny Baumann
2020-10-16Misc Vector updatesChristian Göttsche
- Move swap() macro to source file and implement as function - Implement Vector_get() and Vector_size() as inline functions to make them type safe and avoid lhs usage - Comment comparison statistics, they are only needed for performance testing
2020-10-07Mark Object classes and Object class fields constChristian Göttsche
2020-10-05Update License consistently to GPLv2 as per COPYING fileDaniel Lange
2020-09-09Switch variable/field naming from WhiteList to MatchListNathan Scott
2020-09-03Axe automated header generation.Zev Weiss
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.
2020-08-26Merge branch 'ci-hwloc-job' of https://github.com/bertwesarg/htop into ↵Nathan Scott
bertwesarg-ci-hwloc-job
2019-10-31Clean up existing whitespaceDaniel Flanagan
2018-04-05Collapse current subtree pressing BackspaceHisham Muhammad
2018-02-04Fix: infinite loop in tree view on macOSWataru Ashihara
Fixes #688, the bug regressed on 584a9bc. On Mac OS X 10.11.6, all processes have their parents since there's a special process named "kernel_task", whose PID and PPID are 0. As a result, `this->processes` is never changed causing infinite `while`.
2017-09-14Make 'c' key work with threads as well.Hisham Muhammad