mirror of
https://github.com/InstanceBrick/nightcap.git
synced 2026-10-18 23:00:47 +02:00
24 lines
642 B
C++
24 lines
642 B
C++
#ifndef MOCKTAIL_RUNTIME_DEVICE_MEMORY_PROFILE_H_
|
|
#define MOCKTAIL_RUNTIME_DEVICE_MEMORY_PROFILE_H_
|
|
|
|
#include <cstdint>
|
|
|
|
namespace mocktail {
|
|
namespace runtime {
|
|
|
|
struct DeviceMemoryProfile {
|
|
std::int32_t total_memory_mb = 0;
|
|
std::int32_t memory_class_mb = 0;
|
|
std::int32_t large_memory_class_mb = 0;
|
|
std::int64_t low_memory_killer_background_threshold = 0;
|
|
std::int64_t low_memory_killer_foreground_threshold = 0;
|
|
bool low_ram_device = false;
|
|
};
|
|
|
|
DeviceMemoryProfile BuildDeviceMemoryProfile(std::uint64_t host_memory_bytes);
|
|
|
|
} // namespace runtime
|
|
} // namespace mocktail
|
|
|
|
#endif // MOCKTAIL_RUNTIME_DEVICE_MEMORY_PROFILE_H_
|