terminal/src/cascadia/Remoting
Michael Niksa 66fdc645f7
Set keyword flags on all tracelog events (#10098)
Set keyword flags on all events so those sharing a provider with
telemetry do not fire unless tracing is enabled

## PR Checklist
* [x] Closes #10093 
* [x] I work here
* [x] Tests passed
* [x] Documentation added in `til.h` about how keywords work and at the
  only other site of keywords we define in the Host project tracing
  files.

## Detailed Description of the Pull Request / Additional comments
I initially thought that we would need to split providers here to
accomplish this... but @DHowett helped me realize that might be a lot of
additional metadata and bloat binary size. So with help from a friend
from fundamentals, I realized that we could use Keywords to
differentiate here. We can no longer define 0 keywords as that
represents an any/all scenario. Every `TraceLoggingWrite` event now
needs a keyword. When our events have a keyword, they're not included in
any trace. Additionally, when we have an explicit keyword to check that
is different from the ones used for the telemetry pipeline, we can
ensure that we only do "hard work" to generate debug trace data when an
"ALL" type listener like TraceView or Windows Performance Recorder with
our profiles is listening to these providers for ALL keyworded events. 

## Validation Steps Performed
- [x] - Built with full release build config to confirm performance is
  worse than dev builds BECAUSE of the telemetry event collector camping
  our provider and triggering full trace event generation on shared
  providers.
- [x] - Built with full release build config to enable statistics
  collection and validated trace event collection is excluded and trace
  event short-circuits work with this change.
- [x] - Checked that TraceView still sees both telemetry and tracing
  events
- [x] - Checked that WPR with our .wprp profile sees both telemetry and
  tracing events
2021-05-14 23:14:26 +00:00
..
dll Implement PGO in pipelines for AMD64 architecture; supply training test scenarios (#10071) 2021-05-13 21:12:30 +00:00
Resources/en-US Add Microsoft.Terminal.Remoting.dll (#8607) 2021-01-07 22:59:37 +00:00
CommandlineArgs.cpp Add support for running a commandline in another WT window (#8898) 2021-02-10 11:28:09 +00:00
CommandlineArgs.h Add support for running a commandline in another WT window (#8898) 2021-02-10 11:28:09 +00:00
FindTargetWindowArgs.cpp Add support for running a commandline in another WT window (#8898) 2021-02-10 11:28:09 +00:00
FindTargetWindowArgs.h Add support for naming windows with the -w parameter (#9300) 2021-03-17 19:28:01 +00:00
init.cpp Add support for running a commandline in another WT window (#8898) 2021-02-10 11:28:09 +00:00
Microsoft.Terminal.RemotingLib.vcxproj Add desktop param to globalSummon; set _quake = toCurrent (#9954) 2021-04-28 17:25:48 -05:00
Monarch.cpp Set keyword flags on all tracelog events (#10098) 2021-05-14 23:14:26 +00:00
Monarch.h Add globalSummon action (#9854) 2021-04-28 17:13:28 -05:00
Monarch.idl Add desktop param to globalSummon; set _quake = toCurrent (#9954) 2021-04-28 17:25:48 -05:00
MonarchFactory.h Add Microsoft.Terminal.Remoting.dll (#8607) 2021-01-07 22:59:37 +00:00
packages.config Update C++/WinRT to 2.0.210309.3 (#9437) 2021-03-10 16:04:59 -06:00
pch.cpp Add Microsoft.Terminal.Remoting.dll (#8607) 2021-01-07 22:59:37 +00:00
pch.h Add support for the windowingBehavior setting (#9118) 2021-02-19 21:09:17 +00:00
Peasant.cpp Set keyword flags on all tracelog events (#10098) 2021-05-14 23:14:26 +00:00
Peasant.h Add desktop param to globalSummon; set _quake = toCurrent (#9954) 2021-04-28 17:25:48 -05:00
Peasant.idl When the window is summoned and is already active, minimize it. (#9963) 2021-04-28 18:57:14 -05:00
ProposeCommandlineResult.cpp Add support for running a commandline in another WT window (#8898) 2021-02-10 11:28:09 +00:00
ProposeCommandlineResult.h Add support for naming windows with the -w parameter (#9300) 2021-03-17 19:28:01 +00:00
RenameRequestArgs.cpp Add support for renaming windows (#9662) 2021-04-02 16:00:04 +00:00
RenameRequestArgs.h Add support for renaming windows (#9662) 2021-04-02 16:00:04 +00:00
SummonWindowBehavior.cpp Add desktop param to globalSummon; set _quake = toCurrent (#9954) 2021-04-28 17:25:48 -05:00
SummonWindowBehavior.h When the window is summoned and is already active, minimize it. (#9963) 2021-04-28 18:57:14 -05:00
SummonWindowSelectionArgs.cpp Add globalSummon action (#9854) 2021-04-28 17:13:28 -05:00
SummonWindowSelectionArgs.h Add desktop param to globalSummon; set _quake = toCurrent (#9954) 2021-04-28 17:25:48 -05:00
WindowActivatedArgs.cpp Add support for running a commandline in another WT window (#8898) 2021-02-10 11:28:09 +00:00
WindowActivatedArgs.h Update C++/WinRT to 2.0.210309.3 (#9437) 2021-03-10 16:04:59 -06:00
WindowManager.cpp Set keyword flags on all tracelog events (#10098) 2021-05-14 23:14:26 +00:00
WindowManager.h Add globalSummon action (#9854) 2021-04-28 17:13:28 -05:00
WindowManager.idl Add globalSummon action (#9854) 2021-04-28 17:13:28 -05:00