add device get name

This commit is contained in:
Lizonghang 2024-11-05 22:04:14 +04:00
parent 6657885816
commit a7f3d917a1
3 changed files with 26 additions and 0 deletions

View file

@ -4,6 +4,7 @@
#include <string>
namespace profiler {
const char * device_name();
uint32_t device_cpu_cores();
uint64_t device_physical_memory(bool available = true);
uint64_t device_swap_memory(bool available = true);