summaryrefslogtreecommitdiffstats
path: root/Machine.h
Commit message (Collapse)AuthorAgeFilesLines
* Align parameter names in declarations with definitionsChristian Göttsche2024-04-081-1/+1
|
* Store time of the previous process scanChristian Göttsche2024-03-271-0/+1
| | | | | | | The difference of scans is useful for utilization calculations. To avoid divisions by 0 on first scan set monotonicMs also on first scan.
* Relocate include of config.h from header to source modeuleBenny Baumann2023-12-261-2/+0
|
* Update includes based on IWYUBenny Baumann2023-12-261-2/+0
|
* Support dynamic screens with 'top-most' entities beyond processesSohaib Mohamed2023-08-301-3/+4
| | | | | | | | | | | | | | | | | | | | | | This implements our concept of 'dynamic screens' in htop, with a first use-case of pcp-htop displaying things like top-filesystem and top-cgroups under new screen tabs. However the idea is more general than use in pcp-htop and we've paved the way here for us to collectively build mroe general tabular screens in core htop, as well. From the pcp-htop side of things, dynamic screens are configured using text-based configuration files that define the mapping for PCP metrics to columns (and metric instances to rows). Metrics are defined either directly (via metric names) or indirectly via PCP derived metric specifications. Value scaling and the units displayed is automatic based on PCP metric units and data types. This commit represents a collaborative effort of several months, primarily between myself, Nathan and BenBE. Signed-off-by: Sohaib Mohamed <sohaib.amhmd@gmail.com> Signed-off-by: Nathan Scott <nathans@redhat.com>
* Introduce Row and Table classes for screens beyond top-processesNathan Scott2023-08-301-8/+14
| | | | | | | | | 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.
* Implement logic for '--max-iterations'Sahil Siddiq2023-05-221-0/+2
| | | | | | | | * Add '--max-iterations' option to longopts and shortopts * Implement termination logic * Add iterationsRemaining to 'struct Machine' Co-authored-by: BenBE <BenBE@geshi.org>
* Adapt platform code for the new Machine base classNathan Scott2023-05-081-0/+2
| | | | | 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 Scott2023-05-081-0/+89
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.

© 2014-2024 Faster IT GmbH | imprint | privacy policy