Install xrestop by entering the following commands in the terminal:
sudo apt update sudo apt install xrestop
Description:
X11 server resource usage monitor
xrestop uses the X-Resource extension to provide top(1)-like statistics for each connected X11 client's server-side resource usage. It is intended as a developer tool to aid more efficient server resource usage and debug server-side resource leakage. . xrestop requires the X-Resource extension, supported by XFree86 4.3 and above, and by the freedesktop.org X server.
Version: 0.4+git20130926-1
Section: universe/x11