mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Add number of CPU cores to host info.
This commit is contained in:
parent
aa00b1c4c4
commit
14a373a3b8
@ -42,6 +42,7 @@
|
||||
#include <mutex>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <thread>
|
||||
|
||||
#include "../common/TracyAlign.hpp"
|
||||
#include "../common/TracyProtocol.hpp"
|
||||
@ -466,6 +467,8 @@ static const char* GetHostInfo()
|
||||
ptr += sprintf( ptr, "CPU: unknown\n" );
|
||||
#endif
|
||||
|
||||
ptr += sprintf( ptr, "CPU cores: %i\n", std::thread::hardware_concurrency() );
|
||||
|
||||
#if defined _WIN32 || defined __CYGWIN__
|
||||
MEMORYSTATUSEX statex;
|
||||
statex.dwLength = sizeof( statex );
|
||||
|
Loading…
Reference in New Issue
Block a user