blakeblackshear.frigate/frigate
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
..
comms Fix recordings set name (#4543) 2022-11-28 18:58:41 -06:00
detectors Refactor to simplify support for additional detector types (#3656) 2022-11-03 21:23:09 -05:00
test Add GPU stats to the /stats API and debug screen (#3931) 2022-11-28 19:24:20 -06:00
__init__.py
__main__.py Typing: mypy fixes for 2022-04-17 08:55:38 -05:00
app.py Remove topic prefix (#4515) 2022-11-25 20:10:09 -06:00
birdseye.png
config.py Abstract MQTT from communication and make mqtt optional (#4462) 2022-11-23 20:03:20 -06:00
const.py Add GPU stats to the /stats API and debug screen (#3931) 2022-11-28 19:24:20 -06:00
events.py Typing Part 3: events.py (#3352) 2022-11-19 07:16:33 -06:00
http.py Add GPU stats to the /stats API and debug screen (#3931) 2022-11-28 19:24:20 -06:00
log.py Support special characters in passwords, redacted logs & debug config (#4057) 2022-11-02 07:00:54 -05:00
models.py Limit recording retention to available storage (#3942) 2022-10-09 06:28:26 -05:00
motion.py Adjust threshold and contour_area with mqtt 2022-07-05 08:46:10 -05:00
mypy.ini Abstract MQTT from communication and make mqtt optional (#4462) 2022-11-23 20:03:20 -06:00
object_detection.py Refactor to simplify support for additional detector types (#3656) 2022-11-03 21:23:09 -05:00
object_processing.py Remove topic prefix (#4515) 2022-11-25 20:10:09 -06:00
objects.py cleanup print statements 2022-04-16 09:08:10 -05:00
output.py Add go2rtc and add restream role / live source (#4082) 2022-11-02 06:36:09 -05:00
plus.py read plus api key from addon options 2022-06-30 07:19:40 -05:00
record.py Catch case where segment is bad length (#4228) 2022-11-02 06:37:27 -05:00
restream.py Update go2rtc, simplify manual stream, and support audio for MSE & WebRTC (#4391) 2022-11-16 06:29:47 -06:00
stats.py Add GPU stats to the /stats API and debug screen (#3931) 2022-11-28 19:24:20 -06:00
storage.py Limit recording retention to available storage (#3942) 2022-10-09 06:28:26 -05:00
types.py Refactor to simplify support for additional detector types (#3656) 2022-11-03 21:23:09 -05:00
util.py Add GPU stats to the /stats API and debug screen (#3931) 2022-11-28 19:24:20 -06:00
video.py fix support for yuv models (#4523) 2022-11-26 19:15:47 -06:00
watchdog.py Typing Part 3: events.py (#3352) 2022-11-19 07:16:33 -06:00
zeroconf.py Add basic typing for multiple modules: 2022-04-15 07:01:43 -05:00