mono / monodevelop

MonoDevelop is a cross platform .NET IDE
http://www.monodevelop.com
2.84k stars 1.02k forks source link

Showing a document does MEF work on the UI thread #4367

Closed Therzok closed 6 years ago

Therzok commented 6 years ago
1.16%   InitializeExtensionChain  •  1,034 ms  •  19 calls  •  MonoDevelop.Ide.Gui.Document.InitializeExtensionChain
  1.13%   InitializeExtensionChain  •  1,006 ms  •  19 calls  •  MonoDevelop.Ide.Editor.TextEditor.InitializeExtensionChain(DocumentContext)
    0.95%   CreateInstance  •  841 ms  •  513 calls  •  Mono.Addins.TypeExtensionNode.CreateInstance
      0.92%   CreateInstance  •  823 ms  •  513 calls  •  System.Activator.CreateInstance(Type)
        0.82%   CodeActionEditorExtension..cctor  •  727 ms  •  1 call  •  MonoDevelop.CodeActions.CodeActionEditorExtension..cctor
          0.82%   GetExportedValue  •  727 ms  •  2 calls  •  MonoDevelop.Ide.Composition.CompositionManager.GetExportedValue
            0.82%   GetExportedValue  •  727 ms  •  2 calls  •  Microsoft.VisualStudio.Composition.ExportProvider.GetExportedValue
              0.72%   MonoDevelopWorkspaceDiagnosticAnalyzerProviderService..ctor  •  644 ms  •  1 call  •  MonoDevelop.AnalysisCore.MonoDevelopWorkspaceDiagnosticAnalyzerProviderService..ctor
                0.72%   CreateHostDiagnosticAnalyzerPackages  •  641 ms  •  1 call  •  MonoDevelop.AnalysisCore.MonoDevelopWorkspaceDiagnosticAnalyzerProviderService.CreateHostDiagnosticAnalyzerPackages
                  0.71%   ProcessAssembly  •  632 ms  •  21 calls  •  MonoDevelop.AnalysisCore.MonoDevelopWorkspaceDiagnosticAnalyzerProviderService+OptionsTable.ProcessAssembly(Assembly)
                    ►0.41%   GetTypes  •  369 ms  •  21 calls  •  System.Reflection.Assembly.GetTypes
                    ►0.09%   get_SupportedDiagnostics  •  82 ms  •  2 calls  •  Microsoft.CodeAnalysis.Diagnostics.CompilerDiagnosticAnalyzer.get_SupportedDiagnostics
                     0.09%   GetCustomAttributes  •  81 ms  •  22,766 calls  •  System.RuntimeType.GetCustomAttributes(Type, Boolean)
                    ►0.06%   CreateInstance  •  55 ms  •  175 calls  •  System.Activator.CreateInstance(Type)
                     0.02%   RudeEditDiagnosticDescriptors..cctor  •  15 ms  •  1 call  •  Microsoft.CodeAnalysis.EditAndContinue.RudeEditDiagnosticDescriptors..cctor
                     0.01%   get_SupportedDiagnostics  •  5 ms  •  1 call  •  Microsoft.CodeAnalysis.EditAndContinue.RudeEditDiagnosticAnalyzer.get_SupportedDiagnostics
                     0.00%   FirstOrDefault  •  3 ms  •  22,766 calls  •  System.Linq.Enumerable.FirstOrDefault(IEnumerable[TSource])
                    ►0.00%   IsDiagnosticSupported  •  2 ms  •  3,073 calls  •  MonoDevelop.AnalysisCore.MonoDevelopWorkspaceDiagnosticAnalyzerProviderService+OptionsTable.IsDiagnosticSupported(DiagnosticDescriptor)
                     0.00%   get_IsAbstract  •  2 ms  •  12,814 calls  •  System.Type.get_IsAbstract
                    ►0.00%   get_SupportedDiagnostics  •  1 ms  •  1 call  •  RefactoringEssentials.CSharp.Diagnostics.NotResolvedInTextAnalyzer.get_SupportedDiagnostics
                     0.00%   set_Item  •  1 ms  •  3,165 calls  •  System.Collections.Generic.Dictionary`2.set_Item(TKey, TValue)
                     0.00%   get_SupportedDiagnostics  •  0 ms  •  2 calls  •  Microsoft.CodeAnalysis.Diagnostics.AddImport.UnboundIdentifiersDiagnosticAnalyzerBase`5.get_SupportedDiagnostics
                     0.00%   RenameTrackingDiagnosticAnalyzer..cctor  •  0 ms  •  1 call  •  Microsoft.CodeAnalysis.Editor.Implementation.RenameTracking.RenameTrackingDiagnosticAnalyzer..cctor
                     0.00%   get_SupportedDiagnostics  •  0 ms  •  2 calls  •  Microsoft.CodeAnalysis.RemoveUnnecessaryImports.AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.get_SupportedDiagnostics
                     0.00%   get_SupportedDiagnostics  •  0 ms  •  2 calls  •  Microsoft.CodeAnalysis.Diagnostics.PreferFrameworkType.PreferFrameworkTypeDiagnosticAnalyzerBase`3.get_SupportedDiagnostics
                    ►0.00%   LogError  •  0 ms  •  6 calls  •  MonoDevelop.Core.LoggingService.LogError(String, Exception)
                     0.00%   AbstractValidateFormatStringDiagnosticAnalyzer`1..cctor  •  0 ms  •  2 calls  •  Microsoft.CodeAnalysis.ValidateFormatString.AbstractValidateFormatStringDiagnosticAnalyzer`1..cctor
                     0.00%   MoveNext  •  0 ms  •  3,248 calls  •  System.Collections.Immutable.ImmutableArray+Enumerator`1.MoveNext
                    ►0.00%   CodeDiagnosticDescriptor..ctor  •  0 ms  •  175 calls  •  MonoDevelop.CodeIssues.CodeDiagnosticDescriptor..ctor(String[], Type)
                     0.00%   get_Id  •  0 ms  •  2,997 calls  •  Microsoft.CodeAnalysis.DiagnosticDescriptor.get_Id
                     0.00%   get_Current  •  0 ms  •  3,073 calls  •  System.Collections.Immutable.ImmutableArray+Enumerator`1.get_Current
                    ►0.00%   OnAssemblyLoadEvent  •  0 ms  •  1 call  •  System.AppDomain.OnAssemblyLoadEvent(RuntimeAssembly)
                     0.00%   get_Languages  •  0 ms  •  175 calls  •  Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzerAttribute.get_Languages
                     0.00%   Add  •  0 ms  •  175 calls  •  System.Collections.Generic.List`1.Add(T)
                   0.01%   17 functions hidden  •  8 ms total  •  1346 calls total
                 0.00%   5 functions hidden  •  1 ms total  •  5 calls total
               0.00%   7 functions hidden  •  1 ms total  •  10 calls total
             0.00%   2 functions hidden  •  0 ms total  •  4 calls total
         0.10%   45 functions hidden  •  88 ms total  •  533 calls total
      ►0.02%   get_Type  •  18 ms  •  513 calls  •  Mono.Addins.TypeExtensionNode.get_Type
    ►0.11%   SetExtensionChain  •  101 ms  •  19 calls  •  MonoDevelop.Ide.Editor.TextEditor.SetExtensionChain(DocumentContext, IEnumerable[TextEditorExtension])
     0.07%   15 functions hidden  •  63 ms total  •  5396 calls total
   0.03%   3 functions hidden  •  27 ms total  •  57 calls total

VS bug #593833

xamarin-release-manager commented 4 years ago

[sync] [VS-19] Comment by xamarinc

Fixed in version 8.6.0.802 (master)

Author: David Karlas??
Commit: 4cdc6b235bf95d6021d2c7d5bd1b123e14627646 (xamarin/monodevelop)