feat: add network connections and SM utilization to process metrics

This commit is contained in:
Jonathan Atta
2026-03-11 18:46:36 +01:00
parent d58003feb7
commit 3ad8bf68a4
3 changed files with 146 additions and 70 deletions

View File

@@ -6,6 +6,7 @@ export namespace backend {
type: string;
vram_mb: number;
ram: number;
sm_util: number;
static createFrom(source: any = {}) {
return new GPUProcessInfo(source);
@@ -18,6 +19,7 @@ export namespace backend {
this.type = source["type"];
this.vram_mb = source["vram_mb"];
this.ram = source["ram"];
this.sm_util = source["sm_util"];
}
}
export class ProcessInfo {
@@ -27,6 +29,7 @@ export namespace backend {
mem: number;
read_bps: number;
write_bps: number;
net_conns: number;
static createFrom(source: any = {}) {
return new ProcessInfo(source);
@@ -40,6 +43,7 @@ export namespace backend {
this.mem = source["mem"];
this.read_bps = source["read_bps"];
this.write_bps = source["write_bps"];
this.net_conns = source["net_conns"];
}
}
export class Metrics {