blakeblackshear.frigate/web
Nicolas Mowen aaedd24f37
Add GPU stats to the /stats API and debug screen (#3931)
* Add ffprobe endpoint

* Get ffprobe for multiple inputs

* Copy ffprobe in output

* Fix bad if statement

* Return full output of ffprobe process

* Return full output of ffprobe process

* Make ffprobe button show dialog with output and option to copy

* Add driver names to consts

* Add driver env var name

* Setup general tracking for GPU stats

* Catch RPi args as well

* Add util to get radeontop results

* Add real amd GPU stats

* Fix missed arg

* pass config

* Use only the values

* Fix vram

* Add nvidia gpu stats

* Use nvidia stats

* Add chart for gpu stats

* Format AMD with space between percent

* Get correct nvidia %

* Start to add support for intel GPU stats

* Block out RPi as util is not currently available

* Formatting

* Fix mypy

* Strip for float conversion

* Strip for float conversion

* Fix percent formatting

* Remove name from gpu map

* Add tests and fix AMD formatting

* Add nvidia gpu stats test

* Formatting

* Add intel_gpu_top for testing

* Formatting

* Handle case where hwaccel is not setup

* Formatting

* Check to remove none

* Don't use set

* Cleanup and fix types

* Handle case where args is list

* Fix mypy

* Cast to str

* Fix type checking

* Return none instead of empty

* Fix organization

* Make keys consistent

* Make gpu match style

* Get support for vainfo

* Add vainfo endpoint

* Set vainfo output in error correctly

* Remove duplicate function

* Fix errors

* Do cpu & gpu work asynchonously

* Fix async

* Fix event loop

* Fix crash

* Fix naming

* Send empty data for gpu if error occurs

* Show error if gpu stats could not be retrieved

* Fix mypy

* Fix test

* Don't use json for vainfo

* Fix cross references

* Strip unicode still

* await vainfo response

* Add gpu deps

* Formatting

* remove comments

* Use empty string

* Add vainfo back in
2022-11-28 19:24:20 -06:00
..
__test__ Revamped debug UI and add camera / process info, ffprobe copying (#4349) 2022-11-13 12:48:14 -06:00
images switch to vite 2022-03-11 07:49:06 -06:00
src Add GPU stats to the /stats API and debug screen (#3931) 2022-11-28 19:24:20 -06:00
.eslintrc Update web deps (#4383) 2022-11-13 10:31:36 -06:00
.gitignore Update web dependencies (#4321) 2022-11-08 07:18:43 -06:00
.prettierrc switch to vite 2022-03-11 07:49:06 -06:00
index.html switch to vite 2022-03-11 07:49:06 -06:00
package-lock.json update web deps (#4498) 2022-11-24 08:20:27 -06:00
package.json update web deps (#4498) 2022-11-24 08:20:27 -06:00
postcss.config.cjs Update web deps (#4383) 2022-11-13 10:31:36 -06:00
site.webmanifest switch to vite 2022-03-11 07:49:06 -06:00
tailwind.config.cjs Update web deps (#4383) 2022-11-13 10:31:36 -06:00
tsconfig.json Update web deps (#4383) 2022-11-13 10:31:36 -06:00
tsconfig.node.json Update web deps (#4383) 2022-11-13 10:31:36 -06:00
vite.config.ts Update web deps (#4383) 2022-11-13 10:31:36 -06:00