mirror of
https://github.com/Lizonghang/prima.cpp.git
synced 2025-09-07 18:49:05 +00:00
14 lines
No EOL
393 B
C++
14 lines
No EOL
393 B
C++
#ifndef PROFILER_H
|
|
#define PROFILER_H
|
|
|
|
#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);
|
|
uint64_t get_disk_read_speed(const char * test_file, size_t buffer_size_mb = 500);
|
|
} // namespace profiler
|
|
|
|
#endif // PROFILER_H
|