blakeblackshear.frigate/frigate/test
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
..
__init__.py app container and config schema 2021-01-26 21:40:33 -06:00
const.py Http tests (#3350) 2022-06-30 07:53:46 -05:00
test_camera_pw.py Support more special chars in camera passwords (#4259) 2022-11-05 21:42:32 -05:00
test_config.py More config checks (#4310) 2022-11-08 19:47:45 -06:00
test_copy_yuv_to_position.py maintain aspect ratio for birdseye 2021-06-23 08:15:15 -05:00
test_gpu_stats.py Add GPU stats to the /stats API and debug screen (#3931) 2022-11-28 19:24:20 -06:00
test_http.py fix plus enabled for addons 2022-07-22 08:12:58 -05:00
test_object_detector.py Refactor to simplify support for additional detector types (#3656) 2022-11-03 21:23:09 -05:00
test_reduce_boxes.py Run python unit tests in a github actions (#2589) 2022-02-18 21:18:26 -06:00
test_restream.py Update go2rtc, simplify manual stream, and support audio for MSE & WebRTC (#4391) 2022-11-16 06:29:47 -06:00
test_storage.py Limit recording retention to available storage (#3942) 2022-10-09 06:28:26 -05:00
test_yuv_region_2_rgb.py add lint check to workflow 2022-04-16 09:08:10 -05:00