From 53bdcab942298e0e452d62237bc18e3a4cd551cf Mon Sep 17 00:00:00 2001 From: Sohaib Mohamed Date: Tue, 22 Aug 2023 16:46:59 +1000 Subject: Support dynamic screens with 'top-most' entities beyond processes 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 Signed-off-by: Nathan Scott --- Makefile.am | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index a05c7ea9..b7d3cca3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -49,6 +49,7 @@ myhtopsources = \ DisplayOptionsPanel.c \ DynamicColumn.c \ DynamicMeter.c \ + DynamicScreen.c \ EnvScreen.c \ FileDescriptorMeter.c \ FunctionBar.c \ @@ -79,6 +80,7 @@ myhtopsources = \ Scheduling.c \ ScreenManager.c \ ScreensPanel.c \ + ScreenTabsPanel.c \ Settings.c \ SignalsPanel.c \ SwapMeter.c \ @@ -113,6 +115,7 @@ myhtopheaders = \ DisplayOptionsPanel.h \ DynamicColumn.h \ DynamicMeter.h \ + DynamicScreen.h \ EnvScreen.h \ FileDescriptorMeter.h \ FunctionBar.h \ @@ -148,6 +151,7 @@ myhtopheaders = \ Scheduling.h \ ScreenManager.h \ ScreensPanel.h \ + ScreenTabsPanel.h \ Settings.h \ SignalsPanel.h \ SwapMeter.h \ @@ -408,11 +412,15 @@ endif # -------------------------- pcp_platform_headers = \ + linux/CGroupUtils.h \ linux/PressureStallMeter.h \ linux/ZramMeter.h \ linux/ZramStats.h \ pcp/PCPDynamicColumn.h \ pcp/PCPDynamicMeter.h \ + pcp/PCPDynamicScreen.h \ + pcp/Instance.h \ + pcp/InDomTable.h \ pcp/PCPMachine.h \ pcp/PCPMetric.h \ pcp/PCPProcess.h \ @@ -424,10 +432,14 @@ pcp_platform_headers = \ zfs/ZfsCompressedArcMeter.h pcp_platform_sources = \ + linux/CGroupUtils.c \ linux/PressureStallMeter.c \ linux/ZramMeter.c \ pcp/PCPDynamicColumn.c \ pcp/PCPDynamicMeter.c \ + pcp/PCPDynamicScreen.c \ + pcp/Instance.c \ + pcp/InDomTable.c \ pcp/PCPMachine.c \ pcp/PCPMetric.c \ pcp/PCPProcess.c \ -- cgit v1.2.3