5

My Visual Studio 2012 has become slow to open. In 'safe mode' it's fast again. Presumably some extensions are slowing Visual Studio. Which?

Is there an analogue of Internet Explorer's feature which shows load time for each extensions? http://blogs.msdn.com/b/ie/archive/2009/07/18/how-to-make-ie-open-new-tabs-faster.aspx

Colonel Panic
  • 132,665
  • 89
  • 401
  • 465

3 Answers3

3

You can start Visual Studio from the command line and specify the /log option to have Visual Studio write all details to the ActivityLog.xml. It's not a pretty pop-up dialig, but you can get the information you want from there.

See: http://msdn.microsoft.com/en-us/library/vstudio/ms241272.aspx

jessehouwing
  • 106,458
  • 22
  • 256
  • 341
3

Thanks Jesse, ActivityLog.xml has the information I want. Unfortunately, it's unreadable. I wrote a Python script to extract the relevant details

import sys
from bs4 import BeautifulSoup
try:
    f = open(sys.argv[1])
except IndexError:
    f = sys.stdin

soup = BeautifulSoup(f)

loads = dict()

for entry in soup.find_all('entry'):
    description = entry.find('description')
    if not (description and "package load" in description.get_text() ):
        continue

    print(entry)
    print()
Colonel Panic
  • 132,665
  • 89
  • 401
  • 465
3

I solved my similar problem with "The Activity Log Profiler". It's just an xsl-Stylesheet for the Activity Log and shows the HotSpots and Errors in current ActivityLog.xml

https://github.com/lcorneliussen/ActivityLogProfiler

There is also a Blog-Entry about it: http://startbigthinksmall.wordpress.com/2011/11/08/activity-log-profiler-find-out-which-extension-is-slowing-down-your-visual-studio/

VMAtm
  • 27,943
  • 17
  • 79
  • 125
Henning_Me
  • 31
  • 2