Add number of CPU cores to host info.

This commit is contained in:
Bartosz Taudul 2019-08-15 02:28:35 +02:00
parent aa00b1c4c4
commit 14a373a3b8

View File

@ -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 );