I'm trying to get familiar with PerfView while testing a chunk of my code for a memory leak. However when I click on "Force GC" in the "Collecting Memory Data" dialog (or simply run HeapDump.exe from the command line) I get the following exception (shown with the rest of the log messages):
I'm not sure how to resolve this.Exec: "C:\Users\jmoore\AppData\Roaming\PerfView\VER.2016-02-16.08.44.44.000\x86\HeapDump.exe" /ForceGC 5064 Loading the ETWClrProfiler. Turning on debug privilege. Highest Runtime in process is version v4.0.30319 0.0s: Trying to attach a profiler. 0.1s: Done Attaching ETLClrProfiler ret = 0 Attached ETWClrProfiler. 0.2s: Enabling JScript Heap Provider 0.2s: Enabling EtwClrProfiler 0.2s: Enabling CLR GC events 0.2s: Requesting a JScript GC 0.2s: Requesting a DotNet GC 0.2s: Requesting .NET Native GC HeapDump Error: System.Runtime.InteropServices.COMException (0x80071068): The GUID passed was not recognized as valid by a WMI data provider. (Exception from HRESULT: 0x80071068) at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) at Microsoft.Diagnostics.Tracing.Session.TraceEventSession.CaptureState(Guid providerGuid, UInt64 matchAnyKeywords, Int32 filterType, Object data) at GCHeapDumper.TriggerAllGCs(TraceEventSession session, Stopwatch sw, Int32 processID) at GCHeapDumper.ForceGC(Int32 processID) at Program.MainWorker(String[] args)
Completed: Forcing a GC to process 5064 (Elapsed Time: 0.416 sec)
Error: HeapDump failed with exit code 1. See log for details.