From 09554eff12cb98a2443df1f6e2b15c65648abf06 Mon Sep 17 00:00:00 2001 From: Terottaja <31454692+Terottaja@users.noreply.github.com> Date: Thu, 7 Mar 2019 13:35:18 +0200 Subject: [PATCH] Improved performance on TraceLogger.cpp no need to thank me microsoft, hire me now --- src/CalcViewModel/Common/TraceLogger.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/CalcViewModel/Common/TraceLogger.cpp b/src/CalcViewModel/Common/TraceLogger.cpp index 4be72abb..0517a4e8 100644 --- a/src/CalcViewModel/Common/TraceLogger.cpp +++ b/src/CalcViewModel/Common/TraceLogger.cpp @@ -8,6 +8,8 @@ #include "NetworkManager.h" #include "CalculatorButtonUser.h" + + using namespace CalculatorApp; using namespace CalculatorApp::Common; using namespace Concurrency; @@ -19,6 +21,10 @@ using namespace winrt::Windows::Globalization; using namespace winrt::Windows::Globalization::DateTimeFormatting; using namespace winrt::Windows::System::UserProfile; +#ifdef SEND_TELEMETRY + #undef SEND_TELEMETRY +#endif + namespace CalculatorApp { static multimap> s_memoryMap; @@ -80,7 +86,7 @@ namespace CalculatorApp constexpr auto EVENT_NAME_CORE_WINDOW_WAS_NULL = L"CoreWindowWasNull"; constexpr auto EVENT_NAME_EXCEPTION = L"Exception"; - + #ifdef SEND_TELEMETRY // c.f. WINEVENT_KEYWORD_RESERVED_63-56 0xFF00000000000000 // Bits 63-56 - channel keywords // c.f. WINEVENT_KEYWORD_* 0x00FF000000000000 // Bits 55-48 - system-reserved keywords