feat: add gpu info

This commit is contained in:
utox39
2025-03-03 01:02:24 +01:00
parent 24923b5b11
commit 232fa771cd

View File

@@ -32,4 +32,9 @@ pub fn main() !void {
try stdout.print("cpu: {s} ({})\n", .{ cpu_info.cpu_name, cpu_info.cpu_cores });
try bw.flush();
allocator.free(cpu_info.cpu_name);
const gpu_info = try os_module.getGpuInfo(allocator);
try stdout.print("gpu: {s} ({})\n", .{ gpu_info.gpu_name, gpu_info.gpu_cores });
try bw.flush();
allocator.free(gpu_info.gpu_name);
}