Open zsd4yr opened 6 days ago
Probably this would involving adding this flag to TRACING_SESSION_OPTIONS struct
Just making notes incase anyone comes here later -- in powershell, using Stop-EtwTraceSession "MSVC_BUILD_INSIGHTS_SESSION_*"
from https://learn.microsoft.com/en-us/powershell/module/eventtracingmanagement/stop-etwtracesession is waaaaaaay easier
If there is already a vcperf trace running, you cannot start a new one. This is problematic for scenarios where the trace itself can be interrruputed, like during a scheduled restart. The output shows a way to shut down the last session, but I would love to avoid jumping through the hoops to find the windows sdk install dir, find the latest version, find tracelog.exe, call it, grep the output to find the name of the previous session, and finally call vcperf /stop and wait for the trace to save to a file, even if you don't care about it at all. The last session is completely useless to me.
Current:
I'd like a flag I can pair with vcperf /start to throw away whatever state vcperf might already have and whatever session is currently being tracked immediately.
Desired: