From 14a373a3b8e6e5a86208839ee7f209bd994d6516 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 15 Aug 2019 02:28:35 +0200 Subject: [PATCH] Add number of CPU cores to host info. --- client/TracyProfiler.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index d0278be4..4ab089c6 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -42,6 +42,7 @@ #include #include #include +#include #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 );