forked from Github/frigate
Improve Nvidia GPU stats (#14206)
* :Add support for nvidia driver info * Don't show temperature if detector isn't called coral * Add encoder and decoder info for Nvidia GPUs * Fix device info * Implement GPU info for nvidia GPU * Update web/src/views/system/GeneralMetrics.tsx Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> * Update web/src/views/system/GeneralMetrics.tsx Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> --------- Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com>
This commit is contained in:
@@ -41,8 +41,13 @@ export type ExtraProcessStats = {
|
||||
export type GpuStats = {
|
||||
gpu: string;
|
||||
mem: string;
|
||||
enc?: string;
|
||||
dec?: string;
|
||||
pstate?: string;
|
||||
};
|
||||
|
||||
export type GpuInfo = "vainfo" | "nvinfo";
|
||||
|
||||
export type ServiceStats = {
|
||||
last_updated: number;
|
||||
storage: { [path: string]: StorageStats };
|
||||
@@ -71,6 +76,15 @@ export type Vainfo = {
|
||||
stderr: string;
|
||||
};
|
||||
|
||||
export type Nvinfo = {
|
||||
[key: string]: {
|
||||
name: string;
|
||||
driver: string;
|
||||
cuda_compute: string;
|
||||
vbios: string;
|
||||
};
|
||||
};
|
||||
|
||||
export type Ffprobe = {
|
||||
return_code: number;
|
||||
stderr: string;
|
||||
|
||||
Reference in New Issue
Block a user