I ran into this error. The problem is that when you are doing devenv_3436, the actual counter in perfmon does not show the underscore. It shows the proceses as denenv#1 or denenv#2. We need to enable the following registry key to make sure that Process
Name format shows correctly. I was then able to dump it with no problems.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PerfProc\Performance.
Add a DWORD ProcessNameFormat with value of 2