Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
800 views
in Technique[技术] by (71.8m points)

visual studio 2010 - VS2010 loads slowly. Can I profile extensions' respective startup time?

I have a simple question. Is it possible to somehow get a log of what is taking so much time to load when starting VS2010? On a default install, starting the IDE is very quick (~1-2 s), but with a batch of extensions installed, the time taken for the IDE to launch is prohibitive of using it to "just have a peek at a file".

I know I can "enable and disable extensions one by one", but I'm looking for a better way that gives me numbers, not 'feelings'.

Hope someone out there knows a good way to do this.

Edit: Follow-up question: Can I selectively disable packages from loading into VS2010?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You can use devenv /log as detailed here: MSDN Blogs: Troubleshooting Extensions with the Activity Log.

  1. Run devenv /log
  2. Close the IDE again to close the log Win+R,
  3. Run %APPDATA%MicrosoftVisualStudio10.0ActivityLog.xsl
  4. Wait for it to load in Visual Studio
  5. Open %APPDATA%MicrosoftVisualStudio10.0ActivityLog.xml in a web browser and it will format itself nicely.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...