mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-14 04:01: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 <mutex>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <thread>
|
||||||
|
|
||||||
#include "../common/TracyAlign.hpp"
|
#include "../common/TracyAlign.hpp"
|
||||||
#include "../common/TracyProtocol.hpp"
|
#include "../common/TracyProtocol.hpp"
|
||||||
@ -466,6 +467,8 @@ static const char* GetHostInfo()
|
|||||||
ptr += sprintf( ptr, "CPU: unknown\n" );
|
ptr += sprintf( ptr, "CPU: unknown\n" );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
ptr += sprintf( ptr, "CPU cores: %i\n", std::thread::hardware_concurrency() );
|
||||||
|
|
||||||
#if defined _WIN32 || defined __CYGWIN__
|
#if defined _WIN32 || defined __CYGWIN__
|
||||||
MEMORYSTATUSEX statex;
|
MEMORYSTATUSEX statex;
|
||||||
statex.dwLength = sizeof( statex );
|
statex.dwLength = sizeof( statex );
|
||||||
|
Loading…
Reference in New Issue
Block a user