Я пытаюсь запустить мастер Performance Profiler в моем образце приложения (которое я использую для демонстрации - он просто считает слова в текстовом файле. Приложение работает нормально.).У меня есть вещь в режиме выпуска, и я прошел через мастера.Но когда он запускается, я получаю следующее:
Profiling started.
Profiling process ID 11984 (ProfilingDemo).
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
Starting data collection. The output file is C:\Users\RothAM\Documents\Visual Studio 2017\Projects\ProfilingDemo\ProfilingDemo181129.vspx
Profiler stopping.
at Diagnostics.Eventing.TraceEventSession.EnableKernelProvider(Keywords flags, Keywords stackCapture)
at Microsoft.VisualStudio.PerformanceTools.Base.VSPerf.Main(String[] args)
at Microsoft.VisualStudio.PerformanceTools.VSPerfEtwMon.VSPerfEtwMon.Run()
Unhandled Exception: System.Runtime.InteropServices.COMException: A required privilege is not held by the client. (Exception from HRESULT: 0x80070522)
at Microsoft.VisualStudio.PerformanceTools.VSPerfEtwMon.VSPerfEtwMon.Start()
Error starting data collection with a dedicated process C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Team Tools\Performance Tools\VSPerf.
PRF0025: No data was collected.
Profiling complete.
Хуже, когда он умирает, я не могу снова запустить профилировщик.И есть приостановленный процесс для devenv.exe, который я не могу убить ни с помощью taskkill, ни с помощью обработчика процессов, ни с помощью диспетчера задач.
Диагностика работает просто отлично.Если мне не нужен мастер производительности, я пойду и смогу получить информацию.Это волшебник, который убивает все.
Я использую VS как администратор.
Есть мысли?