$darkmode
Functions | |
| void | gpu_usage_init (GPUUsageMonitor *mon) |
| Scans /proc/self/fdinfo/ and opens streams for GPU engine time reading. More... | |
| void | gpu_usage_cleanup (GPUUsageMonitor *mon) |
| Closes all open fdinfo streams. More... | |
| void | gpu_usage_update (GPUUsageMonitor *mon) |
| Re-reads fdinfo streams and computes GPU load %. Should be called periodically (e.g., every 500ms). More... | |
| float | gpu_usage_get_load (const GPUUsageMonitor *mon) |
| Returns the last computed GPU load (0.0–100.0). More... | |
| bool | gpu_usage_is_available (const GPUUsageMonitor *mon) |
| Returns true if a supported DRM driver was detected. More... | |
| void gpu_usage_cleanup | ( | GPUUsageMonitor * | mon | ) |
Closes all open fdinfo streams.
| float gpu_usage_get_load | ( | const GPUUsageMonitor * | mon | ) |
Returns the last computed GPU load (0.0–100.0).
| void gpu_usage_init | ( | GPUUsageMonitor * | mon | ) |
Scans /proc/self/fdinfo/ and opens streams for GPU engine time reading.
| bool gpu_usage_is_available | ( | const GPUUsageMonitor * | mon | ) |
Returns true if a supported DRM driver was detected.
| void gpu_usage_update | ( | GPUUsageMonitor * | mon | ) |
Re-reads fdinfo streams and computes GPU load %. Should be called periodically (e.g., every 500ms).