mirror of
https://github.com/overte-org/overte.git
synced 2025-07-26 05:37:34 +02:00
42 lines
979 B
C++
42 lines
979 B
C++
//
|
|
// Created by Amer Cerkic 05/02/2019
|
|
// Copyright 2019 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#include "LinuxPlatform.h"
|
|
#include "platformJsonKeys.h"
|
|
#include <GPUIdent.h>
|
|
#include <string>
|
|
|
|
using namespace platform;
|
|
void LinuxInstance::enumerateCpu() {
|
|
json cpu = {};
|
|
|
|
cpu["cpuBrand"] = "";
|
|
cpu["cpuModel"] = "";
|
|
cpu["cpuClockSpeed"] = "";
|
|
cpu["cpuNumCores"] = "";
|
|
|
|
_cpu.push_back(cpu);
|
|
}
|
|
|
|
void LinuxInstance::enumerateGpu() {
|
|
GPUIdent* ident = GPUIdent::getInstance();
|
|
json gpu = {};
|
|
gpu["gpuName"] = ident->getName().toUtf8().constData();
|
|
gpu["gpuMemory"] = ident->getMemory();
|
|
gpu["gpuDriver"] = ident->getDriver().toUtf8().constData();
|
|
|
|
_gpu.push_back(gpu);
|
|
_display = ident->getOutput();
|
|
}
|
|
|
|
void LinuxInstance::enumerateMemory() {
|
|
json ram = {};
|
|
|
|
|
|
_memory.push_back(ram);
|
|
}
|