Not able to create a diagsession using VSDiagnostics.exe

Sattish Vasudevan 20 Reputation points
2023-09-15T10:22:02.72+00:00

Team,

We are facing issues while creating a diagnostics session using the tool VSDiagnostics.exe to collect the performance data required for our analysis in Visual Studio. we use Visual Studio 2022

Command Used:

VSDiagnostics.exe start 2 /attach:5784 /loadConfig:".\AgentConfigs\CpuUsageBase.json"

Output:

C:\Program Files\Microsoft Visual Studio 17.0\Team Tools\DiagnosticsHub\Collector>VSDiagnostics.exe start 2 /attach:5784 /loadConfig:".\AgentConfigs\CpuUsageBase.json"

Microsoft (R) VS Standard Collector

Object reference not set to an instance of an object.
   at Microsoft.DiagnosticsHub.StandardCollector.CollectorActions.LoadProxyStubsForCollectorService()
   at Microsoft.DiagnosticsHub.StandardCollector.CollectorActions.GetCollectorService()
   at Microsoft.DiagnosticsHub.StandardCollector.CollectorActions.Start(RuntimeOptions options)
   at Microsoft.DiagnosticsHub.StandardCollector.Program.Main(String[] args)
Object reference not set to an instance of an object.
   at Microsoft.DiagnosticsHub.StandardCollector.CollectorActions.LoadProxyStubsForCollectorService()
Windows Performance Toolkit
Windows Performance Toolkit
A collection of Microsoft performance monitoring tools that produce in-depth performance profiles of Windows operating systems and applications.
97 questions
{count} votes