Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pcp-htop: support for dynamic screen (user-configurable tabs) #1802

Merged
merged 3 commits into from
Aug 31, 2023

Conversation

natoscott
Copy link
Member

This implements the 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.

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 Sohaib, BenBE and myself.

…f4e4f78b1c

f4e4f78b1c Fix some OpenBSD build fallout from struct Machine changeset
a9740fad7c Fix handling of PCP process arguments with space then slash
c9ad6a90cb Rename PCPMetric files, structures and related internal functions
53bdcab942 Support dynamic screens with 'top-most' entities beyond processes
0f751e991d Introduce Row and Table classes for screens beyond top-processes
68f4f10f01 Fix Meter.c #include order; no code changes
25cb42f0e4 Rework ZramMeter and remove MeterClass.comprisedValues
8ecdb75d74 Explicitly ignore NaN values in BarMeterMode_draw()
a4debfe550 CI: bump to LLVM 16
076b913c7f Compare all percentage fields with compareRealNumbers()
93d76fd376 Add a check and warning about signaling NaN support to 'configure.ac'
b416433fbe Replace isnan() with better comparisons (isgreater(), etc.)
c6fd64fce8 More robust logic for CPU process percentages (Linux & PCP)
47ae966660 configure.ac minor improvements
518685818c Minor data type fixes in Process.c and PCPProcess.c
3d2f5e1a1a Modify PCPProcessList_updateInfo() prototype for readability
03d5e4746f Merge branch 'fix-byte-fields' of xavierog/htop
0f1a05ef30 Process_printBytes(): fix XX.XG and XX.XT byte fields.
278ebbbfaf Merge branch 'remove-vla' of BenBE/htop
2d4e5cba22 Reuse old time() value
78c7b1c86b Show year as start time for processes older than a year
1309c4b3d5 Avoid VLA on OpenBSD when reading swap information
914d92dc3a Avoid VLA on Darwin when reading CPU brand
958057f01a Avoid VLA in OpenFiles screen
30256a77c8 Header order
84f10749f3 Avoid VLA in LibSensors code
5558c015f6 Short-term fix for docker container detection
37d30a3a7d default color preset: use bold blue for better visibility
ea23eee8e2 Fix typos
d8fe027875 Remove duplicate zeroing of global task accounting values on MacOS
0fb0d75433 Fix Linux running tasks count in the Tasks Meter, a recent regression
b810678a8d Avoid comma operator to reduce ambiguity of the assignment
f0a7a78797 Merge branch 'o_shortcut_doc' of valdaarhun/htop
4227fbd06e Document 'O' keyboard shortcut
dc883b2910 Logic to retain screen and other changes
87db37966a Implement logic for '--max-iterations'
3fc286257d Changes in configuration to identify location of 'term.h'
f77ea80b8c Minor style guide clarifications
1de7a2b6e3 Make Action_pickFromVector code match header prototype
a393066ce8 Update F5 key label on tab switch (Tree <-> List)

git-subtree-dir: vendor/github.com/htop-dev/htop
git-subtree-split: f4e4f78b1c410ef9e79cad3e8fece61cccca0588
This implements the 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.

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 Sohaib, BenBE and myself.
@natoscott natoscott merged commit 1e4366c into performancecopilot:main Aug 31, 2023
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant