Taskbar Thumbnail Stats
Shows RAM, CPU and version of the program on the Windows 11 taskbar thumbnails
Author: HaVeN80
Adds a line with live process information to the Windows 11 taskbar
thumbnails (the previews shown when hovering an open app), inside the
thumbnail, over the bottom of the preview image or below it:
- CPU usage in percent, updated every second
- RAM in use: private working set, like Task Manager, or private bytes,
like System Informer; as a size, a percentage of the total RAM, or both
- GPU usage in percent (optional), computed like Task Manager
- version of the executable
Example: CPU: 3.4% · RAM: 412 MB · v131.0.2

For multi-process programs (Firefox, Chrome, Edge, Teams…) the values can
include the child processes too, to get closer to what Task Manager shows.
The line can use the Windows accent color, a custom color or no background
at all, and the font size and text color can be customized.
Optional layout tweaks: the window name and the close button can be moved to
the bottom of the thumbnail, closer to the mouse pointer (with an optional
separator line), the close button can be always shown, and thumbnails of
small windows can be widened to fit the whole line.

Works with the new XAML thumbnails of Windows 11 (tested on 25H2). It does
not work with taskbar replacements such as StartAllBack or ExplorerPatcher.
If enabled in the settings, clicking the line opens a process manager on the
program: Process Explorer (Sysinternals) with the process already selected, if
it's installed, or Task Manager otherwise. Task Manager has no way to be
opened on a specific process, so there you have to find it yourself.
The statistics are collected on a background thread, so the taskbar is never
slowed down, and only while a thumbnail is actually visible.