From 697ec4372e49089337f30601ecc512659485bda2 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 15 Jun 2021 01:32:18 +0200 Subject: [PATCH] Set combine samples flag on win32. --- client/TracyProfiler.cpp | 3 +++ common/TracyProtocol.hpp | 1 + 2 files changed, 4 insertions(+) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index e13ecce7..077ad8fb 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -1355,6 +1355,9 @@ void Profiler::Worker() #ifndef TRACY_NO_CODE_TRANSFER flags |= WelcomeFlag::CodeTransfer; #endif +#ifdef _WIN32 + flags |= WelcomeFlag::CombineSamples; +#endif #if defined __i386 || defined _M_IX86 uint8_t cpuArch = CpuArchX86; diff --git a/common/TracyProtocol.hpp b/common/TracyProtocol.hpp index 113ac2a5..53a48618 100644 --- a/common/TracyProtocol.hpp +++ b/common/TracyProtocol.hpp @@ -84,6 +84,7 @@ struct WelcomeFlag OnDemand = 1 << 0, IsApple = 1 << 1, CodeTransfer = 1 << 2, + CombineSamples = 1 << 3, }; };