mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 06:13:14 -07:00
Improved performance on TraceLogger.cpp
no need to thank me microsoft, hire me now
This commit is contained in:
parent
6a1c2e4bbf
commit
09554eff12
1 changed files with 7 additions and 1 deletions
|
@ -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<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_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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue