Improved performance on TraceLogger.cpp

no need to thank me microsoft, hire me now
This commit is contained in:
Terottaja 2019-03-07 13:35:18 +02:00 committed by GitHub
commit 09554eff12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,6 +8,8 @@
#include "NetworkManager.h" #include "NetworkManager.h"
#include "CalculatorButtonUser.h" #include "CalculatorButtonUser.h"
using namespace CalculatorApp; using namespace CalculatorApp;
using namespace CalculatorApp::Common; using namespace CalculatorApp::Common;
using namespace Concurrency; using namespace Concurrency;
@ -19,6 +21,10 @@ using namespace winrt::Windows::Globalization;
using namespace winrt::Windows::Globalization::DateTimeFormatting; using namespace winrt::Windows::Globalization::DateTimeFormatting;
using namespace winrt::Windows::System::UserProfile; using namespace winrt::Windows::System::UserProfile;
#ifdef SEND_TELEMETRY
#undef SEND_TELEMETRY
#endif
namespace CalculatorApp namespace CalculatorApp
{ {
static multimap<int, vector<wstring>> s_memoryMap; static multimap<int, vector<wstring>> s_memoryMap;
@ -80,7 +86,7 @@ namespace CalculatorApp
constexpr auto EVENT_NAME_CORE_WINDOW_WAS_NULL = L"CoreWindowWasNull"; constexpr auto EVENT_NAME_CORE_WINDOW_WAS_NULL = L"CoreWindowWasNull";
constexpr auto EVENT_NAME_EXCEPTION = L"Exception"; constexpr auto EVENT_NAME_EXCEPTION = L"Exception";
#ifdef SEND_TELEMETRY #ifdef SEND_TELEMETRY
// c.f. WINEVENT_KEYWORD_RESERVED_63-56 0xFF00000000000000 // Bits 63-56 - channel keywords // c.f. WINEVENT_KEYWORD_RESERVED_63-56 0xFF00000000000000 // Bits 63-56 - channel keywords
// c.f. WINEVENT_KEYWORD_* 0x00FF000000000000 // Bits 55-48 - system-reserved keywords // c.f. WINEVENT_KEYWORD_* 0x00FF000000000000 // Bits 55-48 - system-reserved keywords