![]() |
PhoenixHardware
0.2.0
Tools to get hardware information
|
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <netdb.h>
#include <sys/types.h>
#include <sys/sysinfo.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <thread>
#include "phoenix_hardware_characteristics.h"
Go to the source code of this file.
Functions | |
void | phoenix_hardware_hostNameIp (std::string &hostName, std::string &ipAddress) |
Get the host name and the IP address and the current host. | |
size_t | phoenix_hardware_nbCore () |
Get the number of cores on the current host. | |
float | phoenix_hardware_totalRAM () |
Get the total amount of RAM (in GB) of the current host. | |
float | phoenix_hardware_usedRAM () |
Get the ratio of RAM used when this function is called. | |
void phoenix_hardware_hostNameIp | ( | std::string & | hostName, |
std::string & | ipAddress ) |
Get the host name and the IP address and the current host.
[out] | hostName | : name of the current host |
[out] | ipAddress | : ip address of the current host |
Definition at line 73 of file phoenix_hardware_characteristics.cpp.
size_t phoenix_hardware_nbCore | ( | ) |
Get the number of cores on the current host.
Definition at line 96 of file phoenix_hardware_characteristics.cpp.
float phoenix_hardware_totalRAM | ( | ) |
Get the total amount of RAM (in GB) of the current host.
Definition at line 58 of file phoenix_hardware_characteristics.cpp.
float phoenix_hardware_usedRAM | ( | ) |
Get the ratio of RAM used when this function is called.
Definition at line 29 of file phoenix_hardware_characteristics.cpp.