mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Report Haiku memory size
This commit is contained in:
parent
aee8d6e59e
commit
370f568a41
@ -745,6 +745,10 @@ static const char* GetHostInfo()
|
||||
}
|
||||
memSize = memSize / 1024 / 1024;
|
||||
ptr += sprintf( ptr, "RAM: %llu MB\n", memSize);
|
||||
#elif defined __HAIKU__
|
||||
system_info si;
|
||||
get_system_info(&si);
|
||||
ptr += sprintf( ptr, "RAM: %llu MB\n", si.max_pages * PAGESIZE / 1024 / 1024);
|
||||
#else
|
||||
ptr += sprintf( ptr, "RAM: unknown\n" );
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user