Commit Graph

38 Commits

Author SHA1 Message Date
Maxime Schmitt
fae7d7f65d Update interface codebase
The interface layout selection has been updated to support the interface option.
The interface option stores which data that needs to be plotted for each
devices.

The plot drawing code now supports the reverse plotting option.

The interface uses the ring buffer, the updated version of
the layout computation and plots the data specified by the interface options.
2021-05-17 23:32:59 +02:00
Maxime Schmitt
2f20e3a753 Use a ring buffer to store the chart data 2021-05-17 22:42:28 +02:00
Maxime Schmitt
60f331d5d1 Add the update interval as an option
- Add a general option category.
- Moved the disable color option to the general category.
- Add the interface update interval to the general category.
2021-05-15 20:22:50 +02:00
Maxime Schmitt
41c7feaf16 Setup window implementation
The setup window allows the user to modify and save the options of NVTOP.
2021-05-15 17:43:43 +02:00
Maxime Schmitt
4e59a5c841 Configuration file support
This patch adds the loading and writing of the interface options as ini format.
2021-05-15 17:17:29 +02:00
Maxime Schmitt
08be9c0e8f Redisign of program option handling
This change is a precursor to a new option setup window.

The structure supports the command line options, the information to be plotted for each device, and the sorting order of the processes.
2021-05-12 20:26:20 +02:00
Maxime Schmitt
7ba34644ae Update interface and main compilation units to use the new gpuinfo functions 2021-05-11 22:09:24 +02:00
Maxime Schmitt
b1e19a6151 Processus info field rename and add missing header 2021-05-11 21:47:55 +02:00
Maxime Schmitt
3a64efd76f Per vendor GPU extraction
This refactors the GPU information extraction bit into a vendor specific
file.
This way the compilation will not rely on the presence of the nvml header and libnvidia-ml library anymore.
This way it will be easier to add the support for AMD GPU in the future.
2021-05-11 21:47:46 +02:00
Maxime Schmitt
0ef51c99ee Bump uthash version to 2.3.0 2021-05-11 21:47:46 +02:00
Maxime Schmitt
2fa112762c Interface: plot refresh rate respects the -d option
Fixes: #88
2021-01-12 15:33:41 +01:00
Maxime Schmitt
087a025301 Plot: reverse to march other monitoring programs behavior
Change the plot order to mimic the other monitoring programs behavior.
The consensus seems to be that the most recent point is displayed on the
right of the plot and oldest on the left.

Closes #69 as this is now the default.
The command line option "-r, --reverse-abs" is provided to reverse the
plot, getting the pre-commit behaviour if preferred.
2020-10-12 16:07:23 +02:00
Maxime Schmitt
cfa7d66c8b Descent code indentation 2019-01-01 17:51:49 +01:00
Maxime Schmitt
024788ff79 New interface placement algorithm. 2019-01-01 17:39:02 +01:00
Maxime Schmitt
a0eaedc2c5 CPU side memory and utilization in process interface 2018-12-24 18:13:18 +01:00
Maxime Schmitt
6991de1550 CPU side memory and utilization collection 2018-12-23 20:23:17 +01:00
Maxime Schmitt
8e0edef321 Per GPU plot 2018-11-29 17:41:21 +01:00
Maxime Schmitt
4785fe8435 CMake Update 2018-11-21 13:46:39 +01:00
Maxime Schmitt
03186401ba Plot legend 2018-11-21 13:46:39 +01:00
Maxime Schmitt
81e192360f Disable plot option 2018-11-21 13:46:39 +01:00
Maxime Schmitt
74ffeb4b2e Line plot 2018-11-21 13:46:39 +01:00
Maxime Schmitt
8baf504277 Plot 2018-11-21 13:46:39 +01:00
Maxime Schmitt
8b80a11faa Device: encode/decode auto-hide 2018-11-21 13:46:39 +01:00
Maxime Schmitt
e37815d0dc Separate interface update from gpu info query 2018-11-21 13:46:39 +01:00
Maxime Schmitt
e1cab30516 Interface: window placement redone 2018-11-21 13:46:39 +01:00
Maxime Schmitt
7affdc8236 Fahrenheit option 2018-10-20 11:29:42 +02:00
Maxime Schmitt
4377e9c0db Avoid using reserved C identifiers 2018-10-18 11:43:08 +02:00
Maxime Schmitt
f5bdce30a1 Cache: use uthash 2018-10-10 21:49:40 +02:00
Maxime Schmitt
77ef95489e User and process name cache 2018-10-10 20:56:57 +02:00
Maxime Schmitt
1c6cd0dc62 Process names with arguments 2018-10-09 18:05:10 +02:00
Maxime Schmitt
bb6239cd24 Monochrome option 2018-04-11 21:25:25 +02:00
Maxime Schmitt
8cafacdb79 Add GPU selection and ignore command line option 2018-04-09 21:58:50 +02:00
Maxime Schmitt
afe1879270 Option bar 2018-03-29 16:48:16 +02:00
Maxime Schmitt
8499715d4c Interface options 2018-03-28 17:25:05 +02:00
Maxime Schmitt
ab1fe0de2c Non available info printed as N/A 2018-03-26 22:59:05 +02:00
Maxime Schmitt
937552795b Add options 2018-03-23 14:36:47 +01:00
Maxime Schmitt
cc9a7d01a9 Fix header install path and readme mistake 2017-07-20 11:48:22 +02:00
Maxime Schmitt
d9f62ba17d Initial commit 2017-06-16 11:50:53 +02:00