| 1 | # CPU Widget |
| 2 | |
| 3 | The CPU widget displays a visual representation of CPU usage over a time range. |
| 4 | |
| 5 | <figure> |
| 6 | <img src="../../../assets/screenshots/cpu.webp" alt="A picture of an expanded CPU widget showing average CPU usage."/> |
| 7 | </figure> |
| 8 | |
| 9 | ## Features |
| 10 | |
| 11 | The CPU widget is composed of two parts: the graph and the legend: |
| 12 | |
| 13 | - The graph displays the usage data for the currently selected entry as a percentage |
| 14 | - The legend displays all available entries that can be displayed on the graph along with their last recorded use percentage (except for the "All" option) |
| 15 | |
| 16 | Users can scroll through the legend using either the keyboard or mouse to select which entry to display on the graph. The "All" option shows every entry |
| 17 | at the same time, though this may get a bit hard to follow if you have a large number of cores/threads. |
| 18 | |
| 19 | One can also adjust the displayed time range through either the keyboard or mouse, with a range of 30s to 600s. |
| 20 | |
| 21 | ## Key bindings |
| 22 | |
| 23 | Note that key bindings are generally case-sensitive. |
| 24 | |
| 25 | ### Graph |
| 26 | |
| 27 | | Binding | Action | |
| 28 | | --------- | --------------------------------------- | |
| 29 | | ++plus++ | Zoom in on chart (decrease time range) | |
| 30 | | ++minus++ | Zoom out on chart (increase time range) | |
| 31 | | ++equal++ | Reset zoom | |
| 32 | |
| 33 | ### Legend |
| 34 | |
| 35 | | Binding | Action | |
| 36 | | ------------------ | ------------------------------------- | |
| 37 | | ++up++ , ++k++ | Move up within a widget | |
| 38 | | ++down++ , ++j++ | Move down within a widget | |
| 39 | | ++g+g++ , ++home++ | Jump to the first entry in the legend | |
| 40 | | ++G++ , ++end++ | Jump to the last entry in the legend | |
| 41 | |
| 42 | ## Mouse bindings |
| 43 | |
| 44 | ### Graph |
| 45 | |
| 46 | | Binding | Action | |
| 47 | | ------------ | -------------------------------------------------------------- | |
| 48 | | ++"Scroll"++ | Scrolling up or down zooms in or out of the graph respectively | |
| 49 | |
| 50 | ### Legend |
| 51 | |
| 52 | | Binding | Action | |
| 53 | | ------------ | ------------------------------------------------- | |
| 54 | | ++"Scroll"++ | Scroll through options to display in the graph | |
| 55 | | ++lbutton++ | Selects a CPU thread/average to show in the graph | |