Tabbed TPageControl app in one 1024x768 window. Processes tab is a live XProcessList from /proc (sortable Pid/Program/User/MemB/Cpu%). Performance tab is XHistoryGraph (60 s CPU+memory), XCoreGrid (per-core), XUsageBar (Memory, Disk /, Swap), XStackBar (memory breakdown) and XNetGraph (live /proc/net/dev rates). Data sampled every 500 ms from /proc/stat, /proc/meminfo, /proc/net/dev and statvfs; repaint every 2 s (a full repaint issues ~500 XAllocColor round trips via get_color_Srgb, ~0.5 s wall on this Xvfb, so a 500 ms repaint would never catch up). Widgets-only: no raw X11 drawing for UI elements.
14 lines
250 B
Makefile
14 lines
250 B
Makefile
CXX ?= g++
|
|
CXXFLAGS ?= -std=c++17 -O2 -I../../../widgets/components -I../../../widgets
|
|
LDFLAGS ?= -lX11
|
|
|
|
all: task-manager
|
|
|
|
task-manager: main.cpp
|
|
$(CXX) $(CXXFLAGS) main.cpp $(LDFLAGS) -o task-manager
|
|
|
|
clean:
|
|
rm -f task-manager
|
|
|
|
.PHONY: all clean
|