Re: Extremely slow debugging performance in VS2003 with interop
- From: arothberg <arothberg@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 2 Dec 2005 06:03:03 -0800
I do not have _NT_SYMBOL_PATH defined as a system variable.
Regarding renaming symsrv.dll, it does produce interesting behavior. I
rename the file to symsrv.dll.hide, start VS and the initial run of the app
in the debugger now executes CreateInstance in 12 secs instead of 45.
However, the second time I run the app (without shutting down VS), I'm back
to 45 seconds every first time I run the app in the debugger. If I shut down
VS, start it up again, and run the app in the debugger, it's back to 12 secs
the first time I run the app in the debugger, then it's back to 45 seconds
every subsequent first time I run the app in the debugger.
Even if I could get it to run 12 secs every time, it's still unbearably
slow. Any other ideas?
Here is the 12 second output:
'ReproSlowDebugCPP.exe': Loaded
'C:\ReproSlowDebug\ReproSlowDebugCPP\ReproSlowDebugCPP\Debug\ReproSlowDebugCPP.exe', Symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\mfc71d.dll', Symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\msvcr71d.dll', Symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\user32.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\comctl32.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\imm32.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\lpk.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\usp10.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\MFC71ENU.DLL', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\uxtheme.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\Program Files\VSCLIENT\viexhk32.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\wsock32.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\ws2_32.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\ws2help.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\MSCTF.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\SynTPFcs.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\version.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\SafeGuard\SafeGuard Easy\SgMsgBhk.dll',
No symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\MSCTFIME.IME', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\clbcatq.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\comres.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\mscoree.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorwks.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\msvcr71.dll', Symbols loaded.
'ReproSlowDebugCPP.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\fusion.dll', No symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\shell32.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll', No symbols loaded.
'ReproSlowDebugCPP.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorlib.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded
'C:\WINDOWS\assembly\NativeImages1_v1.1.4322\mscorlib\1.0.5000.0__b77a5c561934e089_947c609d\mscorlib.dll', No symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\sxs.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\xpsp2res.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorsn.dll', No symbols loaded.
'ReproSlowDebugCPP.exe': Loaded
'C:\ReproSlowDebug\ReproSlowDebugCPP\ReproSlowDebugCPP\Debug\ReproSlowDebug.dll', No native symbols in symbol file.
'ReproSlowDebugCPP.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorjit.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\diasymreader.dll', No symbols
loaded.
The thread 'Win32 Thread' (0x2ec) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0xf7c) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0xfc4) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0xb04) has exited with code 0 (0x0).
The program '[3192] ReproSlowDebugCPP.exe: Native' has exited with code 0
(0x0).
Here is the 45 second output:
'ReproSlowDebugCPP.exe': Loaded
'C:\ReproSlowDebug\ReproSlowDebugCPP\ReproSlowDebugCPP\Debug\ReproSlowDebugCPP.exe', Symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\mfc71d.dll', Symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\msvcr71d.dll', Symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\user32.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\comctl32.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\imm32.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\lpk.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\usp10.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\MFC71ENU.DLL', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\uxtheme.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\Program Files\VSCLIENT\viexhk32.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\wsock32.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\ws2_32.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\ws2help.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\MSCTF.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\SynTPFcs.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\version.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\SafeGuard\SafeGuard Easy\SgMsgBhk.dll',
No symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\MSCTFIME.IME', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\clbcatq.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\comres.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\mscoree.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorwks.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\msvcr71.dll', Symbols loaded.
'ReproSlowDebugCPP.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\fusion.dll', No symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\shell32.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll', No symbols loaded.
'ReproSlowDebugCPP.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorlib.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded
'C:\WINDOWS\assembly\NativeImages1_v1.1.4322\mscorlib\1.0.5000.0__b77a5c561934e089_947c609d\mscorlib.dll', No symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\sxs.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\xpsp2res.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorsn.dll', No symbols loaded.
'ReproSlowDebugCPP.exe': Loaded
'C:\ReproSlowDebug\ReproSlowDebugCPP\ReproSlowDebugCPP\Debug\ReproSlowDebug.dll', No native symbols in symbol file.
'ReproSlowDebugCPP.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorjit.dll', No symbols
loaded.
"Oleg Starodumov" wrote:
>
> > I do not have any entries in my "Debug Sumbol files" section for the solution
> > and am not using a symbol server.
>
> Is anything specified in _NT_SYMBOL_PATH environment variable?
>
> > Were you able to reproduce the issue on
> > your machine(s) with the code I provided?
> >
>
> Yes, I see a delay when calling CreateInstance for the first time, and it is definitely
> related with loading symbols for a large number of .NET modules (which get loaded
> by the process during that time; the second call to CreateInstance is quick because
> it does not load any new modules).
>
> Also it seems that in my case symbol server plays a major role in the delay.
> If I rename symsrv.dll (located in <VSInstallDir>\Common7\IDE directory, VS restart is required),
> the delay almost disappears. You can try to do the same thing, will it have effect
> in your case?
>
> Oleg
>
>
>
>
>
.
- Follow-Ups:
- Re: Extremely slow debugging performance in VS2003 with interop
- From: arothberg
- Re: Extremely slow debugging performance in VS2003 with interop
- From: Oleg Starodumov
- Re: Extremely slow debugging performance in VS2003 with interop
- References:
- Extremely slow debugging performance in VS2003 with interop
- From: arothberg
- Re: Extremely slow debugging performance in VS2003 with interop
- From: Oleg Starodumov
- Re: Extremely slow debugging performance in VS2003 with interop
- From: Oleg Starodumov
- Extremely slow debugging performance in VS2003 with interop
- Prev by Date: Re: Extremely slow debugging performance in VS2003 with interop
- Next by Date: Re: Extremely slow debugging performance in VS2003 with interop
- Previous by thread: Re: Extremely slow debugging performance in VS2003 with interop
- Next by thread: Re: Extremely slow debugging performance in VS2003 with interop
- Index(es):
Relevant Pages
|
Loading