diff --git a/SharpDevelop.Tests.sln b/SharpDevelop.Tests.sln
index f803c2ef0e..c170b995de 100644
--- a/SharpDevelop.Tests.sln
+++ b/SharpDevelop.Tests.sln
@@ -1,10 +1,8 @@
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
-# SharpDevelop 4.3
+# SharpDevelop 5.0
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Main", "Main", "{256F5C28-532C-44C0-8AB8-D8EC5E492E01}"
- ProjectSection(SolutionItems) = postProject
- EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.SharpDevelop.BuildWorker35", "src\Main\ICSharpCode.SharpDevelop.BuildWorker35\ICSharpCode.SharpDevelop.BuildWorker35.csproj", "{B5F54272-49F0-40DB-845A-8D837875D3BA}"
EndProject
@@ -27,8 +25,6 @@ EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpDevelop", "src\Main\SharpDevelop\SharpDevelop.csproj", "{1152B71B-3C05-4598-B20D-823B5D40559E}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Libraries", "Libraries", "{2A232EF1-EB95-41C6-B63A-C106E0C95D3C}"
- ProjectSection(SolutionItems) = postProject
- EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mono.Cecil", "src\Libraries\cecil\Mono.Cecil.csproj", "{D68133BD-1E63-496E-9EDE-4FBDBF77B486}"
EndProject
@@ -58,20 +54,14 @@ EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Decompiler", "src\Libraries\ICSharpCode.Decompiler\ICSharpCode.Decompiler.csproj", "{984CC812-9470-4A13-AFF9-CC44068D666C}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "AddIns", "AddIns", "{39327899-ED91-4F7F-988C-4FE4E17C014D}"
- ProjectSection(SolutionItems) = postProject
- EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Version Control", "Version Control", "{F208FF4F-E5D8-41D5-A7C7-B463976F156E}"
- ProjectSection(SolutionItems) = postProject
- EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitAddIn", "src\AddIns\VersionControl\GitAddIn\GitAddIn.csproj", "{83F15BA7-8478-4664-81BB-A82F146D88B3}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SubversionAddIn", "src\AddIns\VersionControl\SubversionAddIn\SubversionAddIn.csproj", "{17F4D7E0-6933-4C2E-8714-FD7E98D625D5}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Language Bindings", "Language Bindings", "{E0646C25-36F2-4524-969F-FA621353AB94}"
- ProjectSection(SolutionItems) = postProject
- EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CSharpBinding", "src\AddIns\BackendBindings\CSharpBinding\Project\CSharpBinding.csproj", "{1F1AC7CD-D154-45BB-8EAF-804CA8055F5A}"
EndProject
@@ -100,8 +90,6 @@ EndProject
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "VBBinding", "src\AddIns\BackendBindings\VBBinding\Project\VBBinding.vbproj", "{6D209CBB-D8C1-478A-BC30-D3FC87B7858F}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Misc", "Misc", "{F3662720-9EA2-4591-BBC6-97361DCE50A9}"
- ProjectSection(SolutionItems) = postProject
- EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelpViewer", "src\AddIns\Misc\HelpViewer\HelpViewer.csproj", "{80F76D10-0B44-4D55-B4BD-DAEB5464090C}"
EndProject
@@ -116,8 +104,6 @@ EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RegExpTk", "src\AddIns\Misc\RegExpTk\Project\RegExpTk.csproj", "{64A3E5E6-90BF-47F6-94DF-68C94B62C817}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "UsageDataCollector", "UsageDataCollector", "{DEFC8584-BEC3-4921-BD0F-40482E450B7B}"
- ProjectSection(SolutionItems) = postProject
- EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UsageDataCollector", "src\AddIns\Misc\UsageDataCollector\UsageDataCollector\UsageDataCollector.csproj", "{6B1CFE35-DA17-4DEB-9C6E-227E5E251DA0}"
EndProject
@@ -130,8 +116,6 @@ EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TextTemplating", "src\AddIns\Misc\TextTemplating\Project\TextTemplating.csproj", "{B5D8C3E6-42EC-4D4B-AD05-3644B32563EF}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "PackageManagement", "PackageManagement", "{485A4CCF-55CF-49F4-BD6D-A22B788C67DA}"
- ProjectSection(SolutionItems) = postProject
- EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PackageManagement", "src\AddIns\Misc\PackageManagement\Project\PackageManagement.csproj", "{AE4AB0FA-6087-4480-AF37-0FA1452B3DA1}"
EndProject
@@ -146,16 +130,12 @@ EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PackageManagement.Cmdlets.Tests", "src\AddIns\Misc\PackageManagement\Cmdlets\Test\PackageManagement.Cmdlets.Tests.csproj", "{11115C83-3DB1-431F-8B98-59040359238D}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "AddInManager2", "AddInManager2", "{1F88F080-AD7C-4B03-9895-20C26282429D}"
- ProjectSection(SolutionItems) = postProject
- EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AddInManager2", "src\AddIns\Misc\AddInManager2\Project\AddInManager2.csproj", "{60480C2F-F228-4D86-B98F-AF75A7DCEC34}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AddInManager2.Tests", "src\AddIns\Misc\AddInManager2\AddInManager2.Tests\AddInManager2.Tests.csproj", "{0D0CB6E5-1EAD-471F-96B9-BFF84057BCF5}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Reports", "Reports", "{FEDD3FD9-0480-43CC-913C-4E0876DDA852}"
- ProjectSection(SolutionItems) = postProject
- EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Reports.Addin", "src\AddIns\Misc\Reports\ICSharpCode.Reports.Addin\ICSharpCode.Reports.Addin.csproj", "{62033CC6-01CD-47A2-ADFD-188E9C524C0A}"
EndProject
@@ -168,8 +148,6 @@ EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Irony", "src\AddIns\Misc\Reports\Irony\Irony.csproj", "{47B2D204-C993-4489-8B83-6DA7321CFAE0}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Display Bindings", "Display Bindings", "{11BF9245-88A3-4A0A-9A8A-EC9D98036B0F}"
- ProjectSection(SolutionItems) = postProject
- EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AvalonEdit.AddIn", "src\AddIns\DisplayBindings\AvalonEdit.AddIn\AvalonEdit.AddIn.csproj", "{0162E499-42D0-409B-AA25-EED21F75336B}"
EndProject
@@ -184,8 +162,6 @@ EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ILSpyAddIn", "src\AddIns\DisplayBindings\ILSpyAddIn\ILSpyAddIn.csproj", "{8AA421C8-D7AF-4957-9F43-5135328ACB24}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Data", "Data", "{0F5192F2-0744-4BA9-A074-6BE82D111B8D}"
- ProjectSection(SolutionItems) = postProject
- EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Data.Addin", "src\AddIns\DisplayBindings\Data\ICSharpCode.Data.Addin\ICSharpCode.Data.Addin.csproj", "{A9F12710-24E4-46D4-832C-6ECB395B9EAD}"
EndProject
@@ -200,8 +176,6 @@ EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Data.SQLServer", "src\AddIns\DisplayBindings\Data\ICSharpCode.Data.SQLServer\ICSharpCode.Data.SQLServer.csproj", "{AFE34868-AFA1-4E1C-9450-47AB4BE329D5}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "WpfDesign", "WpfDesign", "{83BAB756-1010-4A2F-9B9D-7F9EBCB288F5}"
- ProjectSection(SolutionItems) = postProject
- EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfDesign", "src\AddIns\DisplayBindings\WpfDesign\WpfDesign\Project\WpfDesign.csproj", "{66A378A1-E9F4-4AD5-8946-D0EC06C2902F}"
EndProject
@@ -218,8 +192,6 @@ EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FormsDesigner", "src\AddIns\DisplayBindings\FormsDesigner\Project\FormsDesigner.csproj", "{9E951B9F-6AC2-4537-9D0B-0AE7C026D5A1}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Debugger", "Debugger", "{AF5E0DC1-1FA0-4346-A436-0C817C68F7C1}"
- ProjectSection(SolutionItems) = postProject
- EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Debugger.Core", "src\AddIns\Debugger\Debugger.Core\Debugger.Core.csproj", "{1D18D788-F7EE-4585-A23B-34DC8EC63CB8}"
EndProject
@@ -228,8 +200,6 @@ EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Debugger.Tests", "src\AddIns\Debugger\Debugger.Tests\Debugger.Tests.csproj", "{A4C858C8-51B6-4265-A695-A20FCEBA1D19}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Analysis", "Analysis", "{B3352C08-3CB4-4DD9-996F-B9DCE4356BB9}"
- ProjectSection(SolutionItems) = postProject
- EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitTesting", "src\AddIns\Analysis\UnitTesting\UnitTesting.csproj", "{1F261725-6318-4434-A1B1-6C70CE4CD324}"
EndProject
@@ -249,6 +219,18 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MachineSpecifications", "sr
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodeQuality", "src\AddIns\Analysis\CodeQuality\CodeQuality.csproj", "{0A029008-4973-4256-9150-9AF12845C547}"
EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Profiler", "Profiler", "{7D16E1F9-0F9F-4A05-A162-A59C05E88B68}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Profiler.Tests", "src\AddIns\Analysis\Profiler\Tests\Profiler.Tests\Profiler.Tests.csproj", "{DAEA4E6C-02CD-47DA-806B-1FCE1E9675EC}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Profiler.X64Converter", "src\AddIns\Analysis\Profiler\X64Converter\Profiler.X64Converter.csproj", "{0D08CEB7-B051-43CF-BBE2-8FD3C43DB0B7}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Profiler.Controller", "src\AddIns\Analysis\Profiler\Controller\Profiler.Controller.csproj", "{CEFF8221-95D8-4F60-9D14-687019D0B2E8}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Profiler.Controls", "src\AddIns\Analysis\Profiler\Frontend\Controls\Profiler.Controls.csproj", "{BD38E43B-947F-474B-8F6C-8BDAA9EE99A6}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Profiler.AddIn", "src\AddIns\Analysis\Profiler\Frontend\AddIn\Profiler.AddIn.csproj", "{D7DB55CF-58F8-4164-A6C9-AE7456E5BEF3}"
+EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PortSD4AddInToSD5", "samples\PortSD4AddInToSD5\PortSD4AddInToSD5.csproj", "{E2FD63DA-8478-4066-934C-DA82A852C83A}"
EndProject
Project("{00000000-0000-0000-0000-000000000000}") = "Tools", "src\Tools\Tools.build", "{3DF4060F-5EE0-41CF-8096-F27355FD5511}"
@@ -399,6 +381,10 @@ Global
{CAD4D128-5A67-444B-88AE-37E0AF79C57E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CAD4D128-5A67-444B-88AE-37E0AF79C57E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CAD4D128-5A67-444B-88AE-37E0AF79C57E}.Release|Any CPU.Build.0 = Release|Any CPU
+ {6D209CBB-D8C1-478A-BC30-D3FC87B7858F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {6D209CBB-D8C1-478A-BC30-D3FC87B7858F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {6D209CBB-D8C1-478A-BC30-D3FC87B7858F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {6D209CBB-D8C1-478A-BC30-D3FC87B7858F}.Release|Any CPU.Build.0 = Release|Any CPU
{80F76D10-0B44-4D55-B4BD-DAEB5464090C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{80F76D10-0B44-4D55-B4BD-DAEB5464090C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{80F76D10-0B44-4D55-B4BD-DAEB5464090C}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -627,10 +613,26 @@ Global
{3DF4060F-5EE0-41CF-8096-F27355FD5511}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3DF4060F-5EE0-41CF-8096-F27355FD5511}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3DF4060F-5EE0-41CF-8096-F27355FD5511}.Release|Any CPU.Build.0 = Release|Any CPU
- {6D209CBB-D8C1-478A-BC30-D3FC87B7858F}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {6D209CBB-D8C1-478A-BC30-D3FC87B7858F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {6D209CBB-D8C1-478A-BC30-D3FC87B7858F}.Release|Any CPU.Build.0 = Release|Any CPU
- {6D209CBB-D8C1-478A-BC30-D3FC87B7858F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {DAEA4E6C-02CD-47DA-806B-1FCE1E9675EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {DAEA4E6C-02CD-47DA-806B-1FCE1E9675EC}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {DAEA4E6C-02CD-47DA-806B-1FCE1E9675EC}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {DAEA4E6C-02CD-47DA-806B-1FCE1E9675EC}.Release|Any CPU.Build.0 = Release|Any CPU
+ {0D08CEB7-B051-43CF-BBE2-8FD3C43DB0B7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {0D08CEB7-B051-43CF-BBE2-8FD3C43DB0B7}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {0D08CEB7-B051-43CF-BBE2-8FD3C43DB0B7}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {0D08CEB7-B051-43CF-BBE2-8FD3C43DB0B7}.Release|Any CPU.Build.0 = Release|Any CPU
+ {CEFF8221-95D8-4F60-9D14-687019D0B2E8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {CEFF8221-95D8-4F60-9D14-687019D0B2E8}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {CEFF8221-95D8-4F60-9D14-687019D0B2E8}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {CEFF8221-95D8-4F60-9D14-687019D0B2E8}.Release|Any CPU.Build.0 = Release|Any CPU
+ {BD38E43B-947F-474B-8F6C-8BDAA9EE99A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {BD38E43B-947F-474B-8F6C-8BDAA9EE99A6}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {BD38E43B-947F-474B-8F6C-8BDAA9EE99A6}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {BD38E43B-947F-474B-8F6C-8BDAA9EE99A6}.Release|Any CPU.Build.0 = Release|Any CPU
+ {D7DB55CF-58F8-4164-A6C9-AE7456E5BEF3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {D7DB55CF-58F8-4164-A6C9-AE7456E5BEF3}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {D7DB55CF-58F8-4164-A6C9-AE7456E5BEF3}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {D7DB55CF-58F8-4164-A6C9-AE7456E5BEF3}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -649,24 +651,19 @@ Global
{D68133BD-1E63-496E-9EDE-4FBDBF77B486} = {2A232EF1-EB95-41C6-B63A-C106E0C95D3C}
{6222A3A1-83CE-47A3-A4E4-A018F82D44D8} = {2A232EF1-EB95-41C6-B63A-C106E0C95D3C}
{E5A0F4D8-37FD-4A30-BEB0-4409DC4E0865} = {2A232EF1-EB95-41C6-B63A-C106E0C95D3C}
+ {3B2A5653-EC97-4001-BB9B-D90F1AF2C371} = {E5A0F4D8-37FD-4A30-BEB0-4409DC4E0865}
+ {53DCA265-3C3C-42F9-B647-F72BA678122B} = {E5A0F4D8-37FD-4A30-BEB0-4409DC4E0865}
+ {DC393B66-92ED-4CAD-AB25-CFEF23F3D7C6} = {E5A0F4D8-37FD-4A30-BEB0-4409DC4E0865}
+ {63D3B27A-D966-4902-90B3-30290E1692F1} = {E5A0F4D8-37FD-4A30-BEB0-4409DC4E0865}
{2FF700C2-A38A-48BD-A637-8CAFD4FE6237} = {2A232EF1-EB95-41C6-B63A-C106E0C95D3C}
{6C55B776-26D4-4DB3-A6AB-87E783B2F3D1} = {2A232EF1-EB95-41C6-B63A-C106E0C95D3C}
{4139CCF6-FB49-4A9D-B2CF-331E9EA3198D} = {2A232EF1-EB95-41C6-B63A-C106E0C95D3C}
{DDE2A481-8271-4EAC-A330-8FA6A38D13D1} = {2A232EF1-EB95-41C6-B63A-C106E0C95D3C}
{984CC812-9470-4A13-AFF9-CC44068D666C} = {2A232EF1-EB95-41C6-B63A-C106E0C95D3C}
- {3B2A5653-EC97-4001-BB9B-D90F1AF2C371} = {E5A0F4D8-37FD-4A30-BEB0-4409DC4E0865}
- {53DCA265-3C3C-42F9-B647-F72BA678122B} = {E5A0F4D8-37FD-4A30-BEB0-4409DC4E0865}
- {DC393B66-92ED-4CAD-AB25-CFEF23F3D7C6} = {E5A0F4D8-37FD-4A30-BEB0-4409DC4E0865}
- {63D3B27A-D966-4902-90B3-30290E1692F1} = {E5A0F4D8-37FD-4A30-BEB0-4409DC4E0865}
{F208FF4F-E5D8-41D5-A7C7-B463976F156E} = {39327899-ED91-4F7F-988C-4FE4E17C014D}
- {E0646C25-36F2-4524-969F-FA621353AB94} = {39327899-ED91-4F7F-988C-4FE4E17C014D}
- {F3662720-9EA2-4591-BBC6-97361DCE50A9} = {39327899-ED91-4F7F-988C-4FE4E17C014D}
- {11BF9245-88A3-4A0A-9A8A-EC9D98036B0F} = {39327899-ED91-4F7F-988C-4FE4E17C014D}
- {AF5E0DC1-1FA0-4346-A436-0C817C68F7C1} = {39327899-ED91-4F7F-988C-4FE4E17C014D}
- {B3352C08-3CB4-4DD9-996F-B9DCE4356BB9} = {39327899-ED91-4F7F-988C-4FE4E17C014D}
- {E2FD63DA-8478-4066-934C-DA82A852C83A} = {39327899-ED91-4F7F-988C-4FE4E17C014D}
{83F15BA7-8478-4664-81BB-A82F146D88B3} = {F208FF4F-E5D8-41D5-A7C7-B463976F156E}
{17F4D7E0-6933-4C2E-8714-FD7E98D625D5} = {F208FF4F-E5D8-41D5-A7C7-B463976F156E}
+ {E0646C25-36F2-4524-969F-FA621353AB94} = {39327899-ED91-4F7F-988C-4FE4E17C014D}
{1F1AC7CD-D154-45BB-8EAF-804CA8055F5A} = {E0646C25-36F2-4524-969F-FA621353AB94}
{E954F3CB-A446-492F-A664-2B376EBC86E8} = {E0646C25-36F2-4524-969F-FA621353AB94}
{70966F84-74C9-4067-A379-0C674A929233} = {E0646C25-36F2-4524-969F-FA621353AB94}
@@ -680,6 +677,7 @@ Global
{85C09AD8-183B-403A-869A-7226646218A9} = {E0646C25-36F2-4524-969F-FA621353AB94}
{CAD4D128-5A67-444B-88AE-37E0AF79C57E} = {E0646C25-36F2-4524-969F-FA621353AB94}
{6D209CBB-D8C1-478A-BC30-D3FC87B7858F} = {E0646C25-36F2-4524-969F-FA621353AB94}
+ {F3662720-9EA2-4591-BBC6-97361DCE50A9} = {39327899-ED91-4F7F-988C-4FE4E17C014D}
{80F76D10-0B44-4D55-B4BD-DAEB5464090C} = {F3662720-9EA2-4591-BBC6-97361DCE50A9}
{9196DD8A-B4D4-4780-8742-C5762E547FC2} = {F3662720-9EA2-4591-BBC6-97361DCE50A9}
{7D5C266F-D6FF-4D14-B315-0C0FC6C4EF51} = {F3662720-9EA2-4591-BBC6-97361DCE50A9}
@@ -687,27 +685,28 @@ Global
{D022A6CE-7438-41E8-AC64-F2DE18EC54C6} = {F3662720-9EA2-4591-BBC6-97361DCE50A9}
{64A3E5E6-90BF-47F6-94DF-68C94B62C817} = {F3662720-9EA2-4591-BBC6-97361DCE50A9}
{DEFC8584-BEC3-4921-BD0F-40482E450B7B} = {F3662720-9EA2-4591-BBC6-97361DCE50A9}
+ {6B1CFE35-DA17-4DEB-9C6E-227E5E251DA0} = {DEFC8584-BEC3-4921-BD0F-40482E450B7B}
+ {0008FCE9-9EB4-4E2E-979B-553278E5BBA6} = {DEFC8584-BEC3-4921-BD0F-40482E450B7B}
{A569DCC1-C608-45FD-B770-4F79335EF154} = {F3662720-9EA2-4591-BBC6-97361DCE50A9}
{5186325C-DD7F-4246-9BE7-3F384EFBF5A6} = {F3662720-9EA2-4591-BBC6-97361DCE50A9}
{B5D8C3E6-42EC-4D4B-AD05-3644B32563EF} = {F3662720-9EA2-4591-BBC6-97361DCE50A9}
{485A4CCF-55CF-49F4-BD6D-A22B788C67DA} = {F3662720-9EA2-4591-BBC6-97361DCE50A9}
- {1F88F080-AD7C-4B03-9895-20C26282429D} = {F3662720-9EA2-4591-BBC6-97361DCE50A9}
- {FEDD3FD9-0480-43CC-913C-4E0876DDA852} = {F3662720-9EA2-4591-BBC6-97361DCE50A9}
- {6B1CFE35-DA17-4DEB-9C6E-227E5E251DA0} = {DEFC8584-BEC3-4921-BD0F-40482E450B7B}
- {0008FCE9-9EB4-4E2E-979B-553278E5BBA6} = {DEFC8584-BEC3-4921-BD0F-40482E450B7B}
{AE4AB0FA-6087-4480-AF37-0FA1452B3DA1} = {485A4CCF-55CF-49F4-BD6D-A22B788C67DA}
{A406803B-C584-43A3-BCEE-A0BB3132CB5F} = {485A4CCF-55CF-49F4-BD6D-A22B788C67DA}
{C3F15E22-5793-4129-AF8C-6229112B86D2} = {485A4CCF-55CF-49F4-BD6D-A22B788C67DA}
{56E98A01-8398-4A08-9578-C7337711A52B} = {485A4CCF-55CF-49F4-BD6D-A22B788C67DA}
{E0A5E80A-003B-4335-A9DC-A76E2E46D38D} = {485A4CCF-55CF-49F4-BD6D-A22B788C67DA}
{11115C83-3DB1-431F-8B98-59040359238D} = {485A4CCF-55CF-49F4-BD6D-A22B788C67DA}
+ {1F88F080-AD7C-4B03-9895-20C26282429D} = {F3662720-9EA2-4591-BBC6-97361DCE50A9}
{60480C2F-F228-4D86-B98F-AF75A7DCEC34} = {1F88F080-AD7C-4B03-9895-20C26282429D}
{0D0CB6E5-1EAD-471F-96B9-BFF84057BCF5} = {1F88F080-AD7C-4B03-9895-20C26282429D}
+ {FEDD3FD9-0480-43CC-913C-4E0876DDA852} = {F3662720-9EA2-4591-BBC6-97361DCE50A9}
{62033CC6-01CD-47A2-ADFD-188E9C524C0A} = {FEDD3FD9-0480-43CC-913C-4E0876DDA852}
{2EE63FDD-7F49-40BD-8A2E-240848B9FA83} = {FEDD3FD9-0480-43CC-913C-4E0876DDA852}
{0884566C-E013-4185-B223-47547AA75167} = {FEDD3FD9-0480-43CC-913C-4E0876DDA852}
{1491E558-9C19-4EAC-9406-868AB8181F38} = {FEDD3FD9-0480-43CC-913C-4E0876DDA852}
{47B2D204-C993-4489-8B83-6DA7321CFAE0} = {FEDD3FD9-0480-43CC-913C-4E0876DDA852}
+ {11BF9245-88A3-4A0A-9A8A-EC9D98036B0F} = {39327899-ED91-4F7F-988C-4FE4E17C014D}
{0162E499-42D0-409B-AA25-EED21F75336B} = {11BF9245-88A3-4A0A-9A8A-EC9D98036B0F}
{E618A9CD-A39F-4925-A538-E8A3FEF24E54} = {11BF9245-88A3-4A0A-9A8A-EC9D98036B0F}
{DCA2703D-250A-463E-A68A-07ED105AE6BD} = {11BF9245-88A3-4A0A-9A8A-EC9D98036B0F}
@@ -715,23 +714,25 @@ Global
{DFB936AD-90EE-4B4F-941E-4F4A636F0D92} = {11BF9245-88A3-4A0A-9A8A-EC9D98036B0F}
{8AA421C8-D7AF-4957-9F43-5135328ACB24} = {11BF9245-88A3-4A0A-9A8A-EC9D98036B0F}
{0F5192F2-0744-4BA9-A074-6BE82D111B8D} = {11BF9245-88A3-4A0A-9A8A-EC9D98036B0F}
- {83BAB756-1010-4A2F-9B9D-7F9EBCB288F5} = {11BF9245-88A3-4A0A-9A8A-EC9D98036B0F}
- {85226AFB-CE71-4851-9A75-7EEC663A8E8A} = {11BF9245-88A3-4A0A-9A8A-EC9D98036B0F}
- {9E951B9F-6AC2-4537-9D0B-0AE7C026D5A1} = {11BF9245-88A3-4A0A-9A8A-EC9D98036B0F}
{A9F12710-24E4-46D4-832C-6ECB395B9EAD} = {0F5192F2-0744-4BA9-A074-6BE82D111B8D}
{B7823AE9-4B43-4859-8796-2EBDC116FBB8} = {0F5192F2-0744-4BA9-A074-6BE82D111B8D}
{BAD94D6E-4159-4CB6-B991-486F412D9BB6} = {0F5192F2-0744-4BA9-A074-6BE82D111B8D}
{5C70D6AB-0A33-43F9-B8B5-54558C35BBB1} = {0F5192F2-0744-4BA9-A074-6BE82D111B8D}
{EEF5E054-4192-4A57-8FBF-E860D808A51D} = {0F5192F2-0744-4BA9-A074-6BE82D111B8D}
{AFE34868-AFA1-4E1C-9450-47AB4BE329D5} = {0F5192F2-0744-4BA9-A074-6BE82D111B8D}
+ {83BAB756-1010-4A2F-9B9D-7F9EBCB288F5} = {11BF9245-88A3-4A0A-9A8A-EC9D98036B0F}
{66A378A1-E9F4-4AD5-8946-D0EC06C2902F} = {83BAB756-1010-4A2F-9B9D-7F9EBCB288F5}
{9A9D6FD4-6A2E-455D-ACC3-DDA775FE9865} = {83BAB756-1010-4A2F-9B9D-7F9EBCB288F5}
{943DBBB3-E84E-4CF4-917C-C05AFA8743C1} = {83BAB756-1010-4A2F-9B9D-7F9EBCB288F5}
{78CC29AC-CC79-4355-B1F2-97936DF198AC} = {83BAB756-1010-4A2F-9B9D-7F9EBCB288F5}
{88DA149F-21B2-48AB-82C4-28FB6BDFD783} = {83BAB756-1010-4A2F-9B9D-7F9EBCB288F5}
+ {85226AFB-CE71-4851-9A75-7EEC663A8E8A} = {11BF9245-88A3-4A0A-9A8A-EC9D98036B0F}
+ {9E951B9F-6AC2-4537-9D0B-0AE7C026D5A1} = {11BF9245-88A3-4A0A-9A8A-EC9D98036B0F}
+ {AF5E0DC1-1FA0-4346-A436-0C817C68F7C1} = {39327899-ED91-4F7F-988C-4FE4E17C014D}
{1D18D788-F7EE-4585-A23B-34DC8EC63CB8} = {AF5E0DC1-1FA0-4346-A436-0C817C68F7C1}
{EC06F96A-AEEC-49D6-B03D-AB87C6EB674C} = {AF5E0DC1-1FA0-4346-A436-0C817C68F7C1}
{A4C858C8-51B6-4265-A695-A20FCEBA1D19} = {AF5E0DC1-1FA0-4346-A436-0C817C68F7C1}
+ {B3352C08-3CB4-4DD9-996F-B9DCE4356BB9} = {39327899-ED91-4F7F-988C-4FE4E17C014D}
{1F261725-6318-4434-A1B1-6C70CE4CD324} = {B3352C08-3CB4-4DD9-996F-B9DCE4356BB9}
{44A8DE09-CAB9-49D8-9CFC-5EB0A552F181} = {B3352C08-3CB4-4DD9-996F-B9DCE4356BB9}
{3EAA45A9-735C-4AC7-A799-947B93EA449D} = {B3352C08-3CB4-4DD9-996F-B9DCE4356BB9}
@@ -741,5 +742,12 @@ Global
{172AE35D-2051-4977-AC13-0BF1B76374D5} = {B3352C08-3CB4-4DD9-996F-B9DCE4356BB9}
{D1DA3B8F-7313-4BDA-8880-461C5F007751} = {B3352C08-3CB4-4DD9-996F-B9DCE4356BB9}
{0A029008-4973-4256-9150-9AF12845C547} = {B3352C08-3CB4-4DD9-996F-B9DCE4356BB9}
+ {7D16E1F9-0F9F-4A05-A162-A59C05E88B68} = {B3352C08-3CB4-4DD9-996F-B9DCE4356BB9}
+ {DAEA4E6C-02CD-47DA-806B-1FCE1E9675EC} = {7D16E1F9-0F9F-4A05-A162-A59C05E88B68}
+ {0D08CEB7-B051-43CF-BBE2-8FD3C43DB0B7} = {7D16E1F9-0F9F-4A05-A162-A59C05E88B68}
+ {CEFF8221-95D8-4F60-9D14-687019D0B2E8} = {7D16E1F9-0F9F-4A05-A162-A59C05E88B68}
+ {BD38E43B-947F-474B-8F6C-8BDAA9EE99A6} = {7D16E1F9-0F9F-4A05-A162-A59C05E88B68}
+ {D7DB55CF-58F8-4164-A6C9-AE7456E5BEF3} = {7D16E1F9-0F9F-4A05-A162-A59C05E88B68}
+ {E2FD63DA-8478-4066-934C-DA82A852C83A} = {39327899-ED91-4F7F-988C-4FE4E17C014D}
EndGlobalSection
EndGlobal
diff --git a/SharpDevelop.sln b/SharpDevelop.sln
index d9a9fa8200..2f2309491b 100644
--- a/SharpDevelop.sln
+++ b/SharpDevelop.sln
@@ -171,6 +171,16 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MachineSpecifications", "sr
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodeQuality", "src\AddIns\Analysis\CodeQuality\CodeQuality.csproj", "{D1DF9C2D-3A5E-4985-ACA4-648C604DB562}"
EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Profiler", "Profiler", "{E9BF2761-031F-4CDC-A7E6-F66F3B347311}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Profiler.Controller", "src\AddIns\Analysis\Profiler\Controller\Profiler.Controller.csproj", "{D788789A-4D43-42B9-B0F7-CB2CA761372B}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Profiler.AddIn", "src\AddIns\Analysis\Profiler\Frontend\AddIn\Profiler.AddIn.csproj", "{2F5FBF6E-E9DD-48C0-A209-7241FE488FDF}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Profiler.X64Converter", "src\AddIns\Analysis\Profiler\X64Converter\Profiler.X64Converter.csproj", "{600D7F63-DACE-4933-BE8C-B51A948A86D4}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Profiler.Controls", "src\AddIns\Analysis\Profiler\Frontend\Controls\Profiler.Controls.csproj", "{B063078F-17D2-4B0C-A01C-DBF440F1C24D}"
+EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Debugger", "Debugger", "{49CE38B8-0460-46BF-9DFF-5B33A0F9EB5E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Debugger.Core", "src\AddIns\Debugger\Debugger.Core\Debugger.Core.csproj", "{1D18D788-F7EE-4585-A23B-34DC8EC63CB8}"
@@ -461,6 +471,22 @@ Global
{D1DF9C2D-3A5E-4985-ACA4-648C604DB562}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D1DF9C2D-3A5E-4985-ACA4-648C604DB562}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D1DF9C2D-3A5E-4985-ACA4-648C604DB562}.Release|Any CPU.Build.0 = Release|Any CPU
+ {D788789A-4D43-42B9-B0F7-CB2CA761372B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {D788789A-4D43-42B9-B0F7-CB2CA761372B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {D788789A-4D43-42B9-B0F7-CB2CA761372B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {D788789A-4D43-42B9-B0F7-CB2CA761372B}.Release|Any CPU.Build.0 = Release|Any CPU
+ {2F5FBF6E-E9DD-48C0-A209-7241FE488FDF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {2F5FBF6E-E9DD-48C0-A209-7241FE488FDF}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {2F5FBF6E-E9DD-48C0-A209-7241FE488FDF}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {2F5FBF6E-E9DD-48C0-A209-7241FE488FDF}.Release|Any CPU.Build.0 = Release|Any CPU
+ {600D7F63-DACE-4933-BE8C-B51A948A86D4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {600D7F63-DACE-4933-BE8C-B51A948A86D4}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {600D7F63-DACE-4933-BE8C-B51A948A86D4}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {600D7F63-DACE-4933-BE8C-B51A948A86D4}.Release|Any CPU.Build.0 = Release|Any CPU
+ {B063078F-17D2-4B0C-A01C-DBF440F1C24D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B063078F-17D2-4B0C-A01C-DBF440F1C24D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {B063078F-17D2-4B0C-A01C-DBF440F1C24D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B063078F-17D2-4B0C-A01C-DBF440F1C24D}.Release|Any CPU.Build.0 = Release|Any CPU
{1D18D788-F7EE-4585-A23B-34DC8EC63CB8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1D18D788-F7EE-4585-A23B-34DC8EC63CB8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1D18D788-F7EE-4585-A23B-34DC8EC63CB8}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -558,6 +584,11 @@ Global
{08CE9972-283B-44F4-82FA-966F7DFA6B7A} = {7019F43E-DFD7-4D1C-8C96-E75D55646DE7}
{D1DA3B8F-7313-4BDA-8880-461C5F007751} = {7019F43E-DFD7-4D1C-8C96-E75D55646DE7}
{D1DF9C2D-3A5E-4985-ACA4-648C604DB562} = {7019F43E-DFD7-4D1C-8C96-E75D55646DE7}
+ {E9BF2761-031F-4CDC-A7E6-F66F3B347311} = {7019F43E-DFD7-4D1C-8C96-E75D55646DE7}
+ {D788789A-4D43-42B9-B0F7-CB2CA761372B} = {E9BF2761-031F-4CDC-A7E6-F66F3B347311}
+ {2F5FBF6E-E9DD-48C0-A209-7241FE488FDF} = {E9BF2761-031F-4CDC-A7E6-F66F3B347311}
+ {600D7F63-DACE-4933-BE8C-B51A948A86D4} = {E9BF2761-031F-4CDC-A7E6-F66F3B347311}
+ {B063078F-17D2-4B0C-A01C-DBF440F1C24D} = {E9BF2761-031F-4CDC-A7E6-F66F3B347311}
{49CE38B8-0460-46BF-9DFF-5B33A0F9EB5E} = {39327899-ED91-4F7F-988C-4FE4E17C014D}
{1D18D788-F7EE-4585-A23B-34DC8EC63CB8} = {49CE38B8-0460-46BF-9DFF-5B33A0F9EB5E}
{EC06F96A-AEEC-49D6-B03D-AB87C6EB674C} = {49CE38B8-0460-46BF-9DFF-5B33A0F9EB5E}
diff --git a/src/AddIns/Analysis/Profiler/Controller/Data/CallTreeNode.cs b/src/AddIns/Analysis/Profiler/Controller/Data/CallTreeNode.cs
index 4a984995f1..0bb070c9c6 100644
--- a/src/AddIns/Analysis/Profiler/Controller/Data/CallTreeNode.cs
+++ b/src/AddIns/Analysis/Profiler/Controller/Data/CallTreeNode.cs
@@ -52,7 +52,7 @@ namespace ICSharpCode.Profiler.Controller.Data
///
public virtual int CallCount {
get {
- return this.RawCallCount + (this.IsActiveAtStart ? 1 : 0);
+ return RawCallCount + (IsActiveAtStart ? 1 : 0);
}
}
@@ -61,7 +61,7 @@ namespace ICSharpCode.Profiler.Controller.Data
///
public virtual bool IsUserCode {
get {
- return this.NameMapping.Id > 0;
+ return NameMapping.Id > 0;
}
}
@@ -89,7 +89,7 @@ namespace ICSharpCode.Profiler.Controller.Data
///
public string Name {
get {
- NameMapping name = this.NameMapping;
+ NameMapping name = NameMapping;
return name != null ? name.Name : null;
}
}
@@ -99,7 +99,7 @@ namespace ICSharpCode.Profiler.Controller.Data
///
public string ReturnType {
get {
- NameMapping name = this.NameMapping;
+ NameMapping name = NameMapping;
return name != null ? name.ReturnType : null;
}
}
@@ -108,7 +108,7 @@ namespace ICSharpCode.Profiler.Controller.Data
/// Determines whether this node is a thread node.
///
public virtual bool IsThread {
- get { return this.Name.StartsWith("Thread#", StringComparison.Ordinal); }
+ get { return Name.StartsWith("Thread#", StringComparison.Ordinal); }
}
///
@@ -116,7 +116,7 @@ namespace ICSharpCode.Profiler.Controller.Data
///
public virtual bool HasChildren {
get {
- return this.Children.Any();
+ return Children.Any();
}
}
@@ -125,7 +125,7 @@ namespace ICSharpCode.Profiler.Controller.Data
///
public IList Parameters {
get {
- NameMapping name = this.NameMapping;
+ NameMapping name = NameMapping;
return name != null ? name.Parameters : NameMapping.EmptyParameterList;
}
}
@@ -183,7 +183,7 @@ namespace ICSharpCode.Profiler.Controller.Data
try {
if (includeSelf)
yield return this; // Descendants is reflexive
- stack.Push(this.Children.GetEnumerator());
+ stack.Push(Children.GetEnumerator());
while (stack.Count > 0) {
IEnumerator e = stack.Peek();
if (e.MoveNext()) {
@@ -220,7 +220,7 @@ namespace ICSharpCode.Profiler.Controller.Data
IEnumerable GetAncestors(bool includeSelf)
{
- CallTreeNode n = includeSelf ? this : this.Parent;
+ CallTreeNode n = includeSelf ? this : Parent;
while (n != null) {
yield return n;
n = n.Parent;
@@ -256,11 +256,11 @@ namespace ICSharpCode.Profiler.Controller.Data
public virtual IEnumerable GetPath()
{
bool hasItems = false;
- foreach (CallTreeNode caller in this.Callers) {
+ foreach (CallTreeNode caller in Callers) {
Debug.Print("caller: " + caller);
foreach (NodePath p in caller.GetPath()) {
hasItems = true;
- yield return p.Append(this.NameMapping.Id);
+ yield return p.Append(NameMapping.Id);
}
}
@@ -277,9 +277,9 @@ namespace ICSharpCode.Profiler.Controller.Data
if (relativeTo.Equals(this))
yield return NodePath.Empty;
else {
- foreach (CallTreeNode caller in this.Callers) {
+ foreach (CallTreeNode caller in Callers) {
foreach (NodePath p in caller.GetPathRelativeTo(relativeTo))
- yield return p.Append(this.NameMapping.Id);
+ yield return p.Append(NameMapping.Id);
}
}
}
@@ -301,7 +301,7 @@ namespace ICSharpCode.Profiler.Controller.Data
///
public override string ToString()
{
- return "[" + GetType().Name + " " + this.NameMapping.Id + " " + this.NameMapping.Name + "]";
+ return "[" + GetType().Name + " " + NameMapping.Id + " " + NameMapping.Name + "]";
}
}
}
diff --git a/src/AddIns/Analysis/Profiler/Controller/Data/IProfilingDataSet.cs b/src/AddIns/Analysis/Profiler/Controller/Data/IProfilingDataSet.cs
index 16df7b35a5..f6e311c9cf 100644
--- a/src/AddIns/Analysis/Profiler/Controller/Data/IProfilingDataSet.cs
+++ b/src/AddIns/Analysis/Profiler/Controller/Data/IProfilingDataSet.cs
@@ -2,8 +2,6 @@
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
namespace ICSharpCode.Profiler.Controller.Data
{
diff --git a/src/AddIns/Analysis/Profiler/Controller/Data/IProfilingDataWriter.cs b/src/AddIns/Analysis/Profiler/Controller/Data/IProfilingDataWriter.cs
index 68db3a0433..932faa9301 100644
--- a/src/AddIns/Analysis/Profiler/Controller/Data/IProfilingDataWriter.cs
+++ b/src/AddIns/Analysis/Profiler/Controller/Data/IProfilingDataWriter.cs
@@ -3,8 +3,6 @@
using System;
using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.Diagnostics;
namespace ICSharpCode.Profiler.Controller.Data
{
diff --git a/src/AddIns/Analysis/Profiler/Controller/Data/IncompatibleDatabaseException.cs b/src/AddIns/Analysis/Profiler/Controller/Data/IncompatibleDatabaseException.cs
index 98c45ead08..ffcec9cca5 100644
--- a/src/AddIns/Analysis/Profiler/Controller/Data/IncompatibleDatabaseException.cs
+++ b/src/AddIns/Analysis/Profiler/Controller/Data/IncompatibleDatabaseException.cs
@@ -54,8 +54,8 @@ namespace ICSharpCode.Profiler.Controller.Data
{
base.GetObjectData(info, context);
if (info != null) {
- info.AddValue("ExpectedVersion", this.ExpectedVersion, typeof(Version));
- info.AddValue("ActualVersion", this.ActualVersion, typeof(Version));
+ info.AddValue("ExpectedVersion", ExpectedVersion, typeof(Version));
+ info.AddValue("ActualVersion", ActualVersion, typeof(Version));
}
}
}
diff --git a/src/AddIns/Analysis/Profiler/Controller/Data/Linq/AllCalls.cs b/src/AddIns/Analysis/Profiler/Controller/Data/Linq/AllCalls.cs
index ae3f7e32e7..7e3fc9ffc7 100644
--- a/src/AddIns/Analysis/Profiler/Controller/Data/Linq/AllCalls.cs
+++ b/src/AddIns/Analysis/Profiler/Controller/Data/Linq/AllCalls.cs
@@ -2,14 +2,8 @@
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.Diagnostics;
-using System.Globalization;
-using System.IO;
using System.Linq;
using System.Linq.Expressions;
-using System.Reflection;
using System.Text;
namespace ICSharpCode.Profiler.Controller.Data.Linq
@@ -23,7 +17,7 @@ namespace ICSharpCode.Profiler.Controller.Data.Linq
{
public static readonly AllCalls Instance = new AllCalls();
- private AllCalls() : base(null)
+ AllCalls() : base(null)
{
}
diff --git a/src/AddIns/Analysis/Profiler/Controller/Data/Linq/Filter.cs b/src/AddIns/Analysis/Profiler/Controller/Data/Linq/Filter.cs
index f73ed092d1..a810bb7226 100644
--- a/src/AddIns/Analysis/Profiler/Controller/Data/Linq/Filter.cs
+++ b/src/AddIns/Analysis/Profiler/Controller/Data/Linq/Filter.cs
@@ -2,14 +2,12 @@
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
-using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
-using System.Reflection;
using System.Text;
namespace ICSharpCode.Profiler.Controller.Data.Linq
diff --git a/src/AddIns/Analysis/Profiler/Controller/Data/Linq/Limit.cs b/src/AddIns/Analysis/Profiler/Controller/Data/Linq/Limit.cs
index 0ff7f59b7e..000ff4b074 100644
--- a/src/AddIns/Analysis/Profiler/Controller/Data/Linq/Limit.cs
+++ b/src/AddIns/Analysis/Profiler/Controller/Data/Linq/Limit.cs
@@ -2,14 +2,8 @@
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.Diagnostics;
-using System.Globalization;
-using System.IO;
using System.Linq;
using System.Linq.Expressions;
-using System.Reflection;
using System.Text;
namespace ICSharpCode.Profiler.Controller.Data.Linq
diff --git a/src/AddIns/Analysis/Profiler/Controller/Data/Linq/MergeByName.cs b/src/AddIns/Analysis/Profiler/Controller/Data/Linq/MergeByName.cs
index 192245dad9..d50ce49516 100644
--- a/src/AddIns/Analysis/Profiler/Controller/Data/Linq/MergeByName.cs
+++ b/src/AddIns/Analysis/Profiler/Controller/Data/Linq/MergeByName.cs
@@ -2,14 +2,9 @@
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
using System.Diagnostics;
-using System.Globalization;
-using System.IO;
using System.Linq;
using System.Linq.Expressions;
-using System.Reflection;
using System.Text;
namespace ICSharpCode.Profiler.Controller.Data.Linq
diff --git a/src/AddIns/Analysis/Profiler/Controller/Data/Linq/OptimizeQueryExpressionVisitor.cs b/src/AddIns/Analysis/Profiler/Controller/Data/Linq/OptimizeQueryExpressionVisitor.cs
index c312a44e1c..d192f8d9fa 100644
--- a/src/AddIns/Analysis/Profiler/Controller/Data/Linq/OptimizeQueryExpressionVisitor.cs
+++ b/src/AddIns/Analysis/Profiler/Controller/Data/Linq/OptimizeQueryExpressionVisitor.cs
@@ -16,7 +16,7 @@ namespace ICSharpCode.Profiler.Controller.Data.Linq
/// Nodes returned from 'Visit' can be assumed to be fully optimized (they won't contain any of the patterns
/// described in the SQLiteQueryProvider optimization documentation).
///
- sealed class OptimizeQueryExpressionVisitor : System.Linq.Expressions.ExpressionVisitor
+ sealed class OptimizeQueryExpressionVisitor : ExpressionVisitor
{
QueryNode Visit(QueryNode queryNode)
{
@@ -181,7 +181,7 @@ namespace ICSharpCode.Profiler.Controller.Data.Linq
}
- sealed class IsConditionSafeVisitor : System.Linq.Expressions.ExpressionVisitor
+ sealed class IsConditionSafeVisitor : ExpressionVisitor
{
public static bool Test(Expression ex, params MemberInfo[] safeMembers)
{
diff --git a/src/AddIns/Analysis/Profiler/Controller/Data/Linq/QueryNode.cs b/src/AddIns/Analysis/Profiler/Controller/Data/Linq/QueryNode.cs
index 77229973cb..3251b9f86f 100644
--- a/src/AddIns/Analysis/Profiler/Controller/Data/Linq/QueryNode.cs
+++ b/src/AddIns/Analysis/Profiler/Controller/Data/Linq/QueryNode.cs
@@ -3,10 +3,7 @@
using System;
using System.Collections.Generic;
-using System.Collections.ObjectModel;
using System.Diagnostics;
-using System.Globalization;
-using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
diff --git a/src/AddIns/Analysis/Profiler/Controller/Data/Linq/SQLiteQueryProvider.cs b/src/AddIns/Analysis/Profiler/Controller/Data/Linq/SQLiteQueryProvider.cs
index fa436204c7..c5574d4ea9 100644
--- a/src/AddIns/Analysis/Profiler/Controller/Data/Linq/SQLiteQueryProvider.cs
+++ b/src/AddIns/Analysis/Profiler/Controller/Data/Linq/SQLiteQueryProvider.cs
@@ -252,7 +252,7 @@ namespace ICSharpCode.Profiler.Controller.Data.Linq
}
#region Convert Expression Tree To Query AST
- sealed class ConvertToQueryAstVisitor : System.Linq.Expressions.ExpressionVisitor
+ sealed class ConvertToQueryAstVisitor : ExpressionVisitor
{
readonly QueryExecutionOptions options;
@@ -573,7 +573,7 @@ namespace ICSharpCode.Profiler.Controller.Data.Linq
#endregion
#region ExecuteAllQueriesVisitor
- sealed class ExecuteAllQueriesVisitor : System.Linq.Expressions.ExpressionVisitor
+ sealed class ExecuteAllQueriesVisitor : ExpressionVisitor
{
readonly SQLiteQueryProvider sqliteProvider;
readonly QueryExecutionOptions options;
diff --git a/src/AddIns/Analysis/Profiler/Controller/Data/Linq/Sort.cs b/src/AddIns/Analysis/Profiler/Controller/Data/Linq/Sort.cs
index 699ad65b08..6d4c039119 100644
--- a/src/AddIns/Analysis/Profiler/Controller/Data/Linq/Sort.cs
+++ b/src/AddIns/Analysis/Profiler/Controller/Data/Linq/Sort.cs
@@ -4,12 +4,9 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
-using System.Diagnostics;
-using System.Globalization;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
-using System.Reflection;
using System.Text;
namespace ICSharpCode.Profiler.Controller.Data.Linq
diff --git a/src/AddIns/Analysis/Profiler/Controller/Data/Linq/SqlQueryContext.cs b/src/AddIns/Analysis/Profiler/Controller/Data/Linq/SqlQueryContext.cs
index e4f9ea4ee0..54501693fb 100644
--- a/src/AddIns/Analysis/Profiler/Controller/Data/Linq/SqlQueryContext.cs
+++ b/src/AddIns/Analysis/Profiler/Controller/Data/Linq/SqlQueryContext.cs
@@ -31,9 +31,9 @@ namespace ICSharpCode.Profiler.Controller.Data.Linq
public void SetCurrent(CallTreeNodeSqlNameSet nameSet, SqlTableType table, bool hasIDList)
{
- this.CurrentNameSet = nameSet;
- this.CurrentTable = table;
- this.HasIDList = hasIDList;
+ CurrentNameSet = nameSet;
+ CurrentTable = table;
+ HasIDList = hasIDList;
}
SQLiteQueryProvider provider;
diff --git a/src/AddIns/Analysis/Profiler/Controller/Data/PerformanceCounterDescriptor.cs b/src/AddIns/Analysis/Profiler/Controller/Data/PerformanceCounterDescriptor.cs
index a4589b464d..ea136b8da8 100644
--- a/src/AddIns/Analysis/Profiler/Controller/Data/PerformanceCounterDescriptor.cs
+++ b/src/AddIns/Analysis/Profiler/Controller/Data/PerformanceCounterDescriptor.cs
@@ -130,7 +130,7 @@ namespace ICSharpCode.Profiler.Controller.Data
///
public void Reset()
{
- this.Values.Clear();
+ Values.Clear();
}
///
@@ -155,14 +155,14 @@ namespace ICSharpCode.Profiler.Controller.Data
return;
}
try {
- this.Values.Add(counter.NextValue());
+ Values.Add(counter.NextValue());
#if DEBUG
} catch (Exception e) {
Console.WriteLine(e.ToString());
#else
} catch (Exception) {
#endif
- this.Values.Add(defaultValue);
+ Values.Add(defaultValue);
}
}
diff --git a/src/AddIns/Analysis/Profiler/Controller/Data/ProfilingDataProvider.cs b/src/AddIns/Analysis/Profiler/Controller/Data/ProfilingDataProvider.cs
index dbc93a6af9..e236eb53de 100644
--- a/src/AddIns/Analysis/Profiler/Controller/Data/ProfilingDataProvider.cs
+++ b/src/AddIns/Analysis/Profiler/Controller/Data/ProfilingDataProvider.cs
@@ -2,7 +2,6 @@
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
-using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
diff --git a/src/AddIns/Analysis/Profiler/Controller/Data/ProfilingDataSQLiteProvider.cs b/src/AddIns/Analysis/Profiler/Controller/Data/ProfilingDataSQLiteProvider.cs
index be9d32c330..330b974faa 100644
--- a/src/AddIns/Analysis/Profiler/Controller/Data/ProfilingDataSQLiteProvider.cs
+++ b/src/AddIns/Analysis/Profiler/Controller/Data/ProfilingDataSQLiteProvider.cs
@@ -1,18 +1,15 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
-using ICSharpCode.Profiler.Controller.Data.Linq;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Data.SQLite;
-using System.Diagnostics;
using System.Globalization;
-using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Threading;
-using ICSharpCode.Profiler.Interprocess;
+using ICSharpCode.Profiler.Controller.Data.Linq;
namespace ICSharpCode.Profiler.Controller.Data
{
@@ -142,7 +139,7 @@ namespace ICSharpCode.Profiler.Controller.Data
///
public override void Close()
{
- this.Dispose();
+ Dispose();
}
///
@@ -182,7 +179,7 @@ namespace ICSharpCode.Profiler.Controller.Data
///
public override ReadOnlyCollection DataSets {
get {
- if (this.dataSets == null) {
+ if (dataSets == null) {
List list = new List();
SQLiteCommand cmd;
@@ -202,10 +199,10 @@ namespace ICSharpCode.Profiler.Controller.Data
}
}
- this.dataSets = new ReadOnlyCollection(list);
+ dataSets = new ReadOnlyCollection(list);
}
- return this.dataSets;
+ return dataSets;
}
}
@@ -227,7 +224,7 @@ namespace ICSharpCode.Profiler.Controller.Data
public CallTreeNode RootNode {
get {
- return this.provider.GetRoot(ID, ID);
+ return provider.GetRoot(ID, ID);
}
}
@@ -246,7 +243,7 @@ namespace ICSharpCode.Profiler.Controller.Data
rwLock.EnterWriteLock();
try {
if (!isDisposed)
- this.connection.Close();
+ connection.Close();
isDisposed = true;
} finally {
@@ -330,17 +327,17 @@ namespace ICSharpCode.Profiler.Controller.Data
throw new ProfilerException("processorfrequency was not found!");
}
- return this.processorFrequency;
+ return processorFrequency;
}
}
///
public override IQueryable GetFunctions(int startIndex, int endIndex)
{
- if (startIndex < 0 || startIndex >= this.DataSets.Count)
+ if (startIndex < 0 || startIndex >= DataSets.Count)
throw new ArgumentOutOfRangeException("startIndex", startIndex, "Value must be between 0 and " + endIndex);
- if (endIndex < startIndex || endIndex >= this.DataSets.Count)
- throw new ArgumentOutOfRangeException("endIndex", endIndex, "Value must be between " + startIndex + " and " + (this.DataSets.Count - 1));
+ if (endIndex < startIndex || endIndex >= DataSets.Count)
+ throw new ArgumentOutOfRangeException("endIndex", endIndex, "Value must be between " + startIndex + " and " + (DataSets.Count - 1));
SQLiteQueryProvider queryProvider = new SQLiteQueryProvider(this, startIndex, endIndex);
@@ -478,15 +475,15 @@ namespace ICSharpCode.Profiler.Controller.Data
LockObject LockAndCreateCommand(out SQLiteCommand cmd)
{
- this.rwLock.EnterReadLock();
+ rwLock.EnterReadLock();
if (isDisposed) {
- this.rwLock.ExitReadLock();
+ rwLock.ExitReadLock();
throw new ObjectDisposedException("ProfilingDataSQLiteProvider", "The provider was already closed!");
}
- cmd = this.connection.CreateCommand();
- return new LockObject(cmd, this.rwLock);
+ cmd = connection.CreateCommand();
+ return new LockObject(cmd, rwLock);
}
struct LockObject : IDisposable
diff --git a/src/AddIns/Analysis/Profiler/Controller/Data/ProfilingDataSQLiteWriter.cs b/src/AddIns/Analysis/Profiler/Controller/Data/ProfilingDataSQLiteWriter.cs
index 0a62869430..c76248f5aa 100644
--- a/src/AddIns/Analysis/Profiler/Controller/Data/ProfilingDataSQLiteWriter.cs
+++ b/src/AddIns/Analysis/Profiler/Controller/Data/ProfilingDataSQLiteWriter.cs
@@ -3,15 +3,11 @@
using System;
using System.Collections.Generic;
-using System.Collections.ObjectModel;
using System.Data.SQLite;
-using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
-using ICSharpCode.Profiler.Interprocess;
-using System.Threading;
namespace ICSharpCode.Profiler.Controller.Data
{
@@ -60,13 +56,13 @@ namespace ICSharpCode.Profiler.Controller.Data
if (isDisposed)
return;
- using (SQLiteCommand cmd = this.connection.CreateCommand()) {
+ using (SQLiteCommand cmd = connection.CreateCommand()) {
// create index at the end (after inserting data), this is faster
cmd.CommandText = CallsAndFunctionsIndexDefs;
cmd.ExecuteNonQuery();
}
- this.Dispose();
+ Dispose();
}
///
@@ -75,11 +71,11 @@ namespace ICSharpCode.Profiler.Controller.Data
///
public int ProcessorFrequency {
get {
- return this.processorFrequency;
+ return processorFrequency;
}
set {
processorFrequency = value;
- ProfilingDataSQLiteProvider.SetProperty(this.connection.CreateCommand(), "processorfrequency", value.ToString(CultureInfo.InvariantCulture));
+ ProfilingDataSQLiteProvider.SetProperty(connection.CreateCommand(), "processorfrequency", value.ToString(CultureInfo.InvariantCulture));
}
}
@@ -91,8 +87,8 @@ namespace ICSharpCode.Profiler.Controller.Data
if (dataSet == null)
throw new ArgumentNullException("dataSet");
- using (SQLiteTransaction transaction = this.connection.BeginTransaction()) {
- SQLiteCommand cmd = this.connection.CreateCommand();
+ using (SQLiteTransaction transaction = connection.BeginTransaction()) {
+ SQLiteCommand cmd = connection.CreateCommand();
if (dataSetCount == -1)
dataSetCount = 0;
@@ -106,7 +102,7 @@ namespace ICSharpCode.Profiler.Controller.Data
int dataSetStartId = functionInfoCount;
- using (SQLiteCommand loopCommand = this.connection.CreateCommand()) {
+ using (SQLiteCommand loopCommand = connection.CreateCommand()) {
CallTreeNode node = dataSet.RootNode;
loopCommand.CommandText = "INSERT INTO Calls(id, endid, parentid, nameid, cpucyclesspent, cpucyclesspentself, isactiveatstart, callcount)" +
@@ -125,7 +121,7 @@ namespace ICSharpCode.Profiler.Controller.Data
InsertCalls(loopCommand, node, -1, dataParams);
}
- using (SQLiteCommand functionsCommand = this.connection.CreateCommand()) {
+ using (SQLiteCommand functionsCommand = connection.CreateCommand()) {
functionsCommand.CommandText = string.Format(@"
INSERT INTO Functions
SELECT {0}, nameid, SUM(cpucyclesspent), SUM(cpucyclesspentself), SUM(isactiveatstart), SUM(callcount), MAX(id != endid)
@@ -201,7 +197,7 @@ namespace ICSharpCode.Profiler.Controller.Data
// NameMapping.Id <-> FunctionData.NameId 1:N
// FunctionData.ParentId <-> FunctionData.Id 1:N
- SQLiteCommand cmd = this.connection.CreateCommand();
+ SQLiteCommand cmd = connection.CreateCommand();
cmd.CommandText = CallsAndFunctionsTableDefs + @"
@@ -276,8 +272,8 @@ namespace ICSharpCode.Profiler.Controller.Data
///
public void WriteMappings(IEnumerable mappings)
{
- using (SQLiteTransaction trans = this.connection.BeginTransaction()) {
- using (SQLiteCommand cmd = this.connection.CreateCommand()) {
+ using (SQLiteTransaction trans = connection.BeginTransaction()) {
+ using (SQLiteCommand cmd = connection.CreateCommand()) {
SQLiteParameter idParam = new SQLiteParameter("id");
SQLiteParameter retTParam = new SQLiteParameter("returntype");
SQLiteParameter nameParam = new SQLiteParameter("name");
@@ -307,7 +303,7 @@ namespace ICSharpCode.Profiler.Controller.Data
public void Dispose()
{
if (!isDisposed)
- this.connection.Close();
+ connection.Close();
isDisposed = true;
}
@@ -315,9 +311,9 @@ namespace ICSharpCode.Profiler.Controller.Data
///
public void WritePerformanceCounterData(IEnumerable counters)
{
- using (SQLiteTransaction trans = this.connection.BeginTransaction()) {
- using (SQLiteCommand cmd = this.connection.CreateCommand()) {
- using (SQLiteCommand cmd2 = this.connection.CreateCommand()) {
+ using (SQLiteTransaction trans = connection.BeginTransaction()) {
+ using (SQLiteCommand cmd = connection.CreateCommand()) {
+ using (SQLiteCommand cmd2 = connection.CreateCommand()) {
SQLiteParameter idParam = new SQLiteParameter("id");
SQLiteParameter nameParam = new SQLiteParameter("name");
@@ -368,8 +364,8 @@ namespace ICSharpCode.Profiler.Controller.Data
///
public void WriteEventData(IEnumerable events)
{
- using (SQLiteTransaction trans = this.connection.BeginTransaction()) {
- using (SQLiteCommand cmd = this.connection.CreateCommand()) {
+ using (SQLiteTransaction trans = connection.BeginTransaction()) {
+ using (SQLiteCommand cmd = connection.CreateCommand()) {
SQLiteParameter dataSetParam = new SQLiteParameter("datasetid");
SQLiteParameter eventTypeParam = new SQLiteParameter("eventtype");
SQLiteParameter nameIdParam = new SQLiteParameter("nameid");
@@ -395,7 +391,7 @@ namespace ICSharpCode.Profiler.Controller.Data
///
public int DataSetCount {
- get { return this.dataSetCount; }
+ get { return dataSetCount; }
}
}
}
diff --git a/src/AddIns/Analysis/Profiler/Controller/Data/SQLiteCallTreeNode.cs b/src/AddIns/Analysis/Profiler/Controller/Data/SQLiteCallTreeNode.cs
index 9ded14edd7..2cf6868540 100644
--- a/src/AddIns/Analysis/Profiler/Controller/Data/SQLiteCallTreeNode.cs
+++ b/src/AddIns/Analysis/Profiler/Controller/Data/SQLiteCallTreeNode.cs
@@ -1,14 +1,11 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
-using ICSharpCode.Profiler.Controller.Data.Linq;
using System;
using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.Data.SQLite;
-using System.Globalization;
using System.Linq;
using System.Linq.Expressions;
+using ICSharpCode.Profiler.Controller.Data.Linq;
namespace ICSharpCode.Profiler.Controller.Data
{
@@ -44,15 +41,15 @@ namespace ICSharpCode.Profiler.Controller.Data
///
internal int[] IdList {
get {
- int[] tmp = this.ids;
+ int[] tmp = ids;
if (tmp == null) {
tmp = provider.LoadIDListForFunction(nameId);
- this.ids = tmp;
+ ids = tmp;
}
return tmp;
}
set {
- this.ids = value;
+ ids = value;
}
}
@@ -64,14 +61,14 @@ namespace ICSharpCode.Profiler.Controller.Data
if (nameId == 0)
return new NameMapping(0, null, "Merged node", null);
- return this.provider.GetMapping(nameId);
+ return provider.GetMapping(nameId);
}
}
///
public override int RawCallCount {
get {
- return this.callCount;
+ return callCount;
}
}
@@ -80,12 +77,12 @@ namespace ICSharpCode.Profiler.Controller.Data
///
public override long CpuCyclesSpent {
get{
- return this.cpuCyclesSpent;
+ return cpuCyclesSpent;
}
}
public override long CpuCyclesSpentSelf {
- get { return this.cpuCyclesSpentSelf; }
+ get { return cpuCyclesSpentSelf; }
}
///
@@ -93,7 +90,7 @@ namespace ICSharpCode.Profiler.Controller.Data
///
public override CallTreeNode Parent {
get {
- return this.parent;
+ return parent;
}
}
@@ -110,7 +107,7 @@ namespace ICSharpCode.Profiler.Controller.Data
if (!hasChildren)
return EmptyQueryable;
- List ids = this.IdList.ToList();
+ List ids = IdList.ToList();
Expression> filterLambda = c => ids.Contains(c.ParentID);
return provider.CreateQuery(new MergeByName(new Filter(AllCalls.Instance, filterLambda)));
}
@@ -121,13 +118,13 @@ namespace ICSharpCode.Profiler.Controller.Data
///
public override double TimeSpent {
get {
- return CpuCyclesSpent / (1000.0 * this.provider.ProcessorFrequency);
+ return CpuCyclesSpent / (1000.0 * provider.ProcessorFrequency);
}
}
public override double TimeSpentSelf {
get {
- return CpuCyclesSpentSelf / (1000.0 * this.provider.ProcessorFrequency);
+ return CpuCyclesSpentSelf / (1000.0 * provider.ProcessorFrequency);
}
}
@@ -151,7 +148,7 @@ namespace ICSharpCode.Profiler.Controller.Data
/// A new CallTreeNode.
public override CallTreeNode Merge(IEnumerable nodes)
{
- SQLiteCallTreeNode mergedNode = new SQLiteCallTreeNode(0, null, this.provider);
+ SQLiteCallTreeNode mergedNode = new SQLiteCallTreeNode(0, null, provider);
List mergedIds = new List();
bool initialised = false;
@@ -179,12 +176,12 @@ namespace ICSharpCode.Profiler.Controller.Data
get {
// parent is not null => this node was created by a
// 'Children' call => all our IDs come from that parent
- if (this.parent != null)
- return (new CallTreeNode[] { this.parent }).AsQueryable();
+ if (parent != null)
+ return (new CallTreeNode[] { parent }).AsQueryable();
List parentIDList = provider.RunSQLIDList(
"SELECT parentid FROM Calls "
- + "WHERE id IN(" + string.Join(",", this.IdList.Select(s => s.ToString()).ToArray()) + @")");
+ + "WHERE id IN(" + string.Join(",", IdList.Select(s => s.ToString()).ToArray()) + @")");
Expression> filterLambda = c => parentIDList.Contains(c.ID);
return provider.CreateQuery(new MergeByName(new Filter(AllCalls.Instance, filterLambda)));
@@ -196,7 +193,7 @@ namespace ICSharpCode.Profiler.Controller.Data
SQLiteCallTreeNode node = other as SQLiteCallTreeNode;
if (node != null) {
- int[] a = this.IdList;
+ int[] a = IdList;
int[] b = node.IdList;
if (a.Length != b.Length)
return false;
@@ -219,7 +216,7 @@ namespace ICSharpCode.Profiler.Controller.Data
int hash = 0;
unchecked {
- foreach (int i in this.IdList) {
+ foreach (int i in IdList) {
hash = hash * hashPrime + i;
}
}
@@ -228,7 +225,7 @@ namespace ICSharpCode.Profiler.Controller.Data
}
public override bool HasChildren {
- get { return this.hasChildren; }
+ get { return hasChildren; }
}
}
}
diff --git a/src/AddIns/Analysis/Profiler/Controller/Data/TempFileDatabase.cs b/src/AddIns/Analysis/Profiler/Controller/Data/TempFileDatabase.cs
index 0c824d3def..d62567ec3c 100644
--- a/src/AddIns/Analysis/Profiler/Controller/Data/TempFileDatabase.cs
+++ b/src/AddIns/Analysis/Profiler/Controller/Data/TempFileDatabase.cs
@@ -7,7 +7,6 @@ using System.Collections.ObjectModel;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
-using System.Threading;
using ICSharpCode.Profiler.Interprocess;
@@ -77,7 +76,7 @@ namespace ICSharpCode.Profiler.Controller.Data
public override int ProcessorFrequency {
get {
- return this.database.processorFrequency;
+ return database.processorFrequency;
}
}
@@ -95,13 +94,13 @@ namespace ICSharpCode.Profiler.Controller.Data
{
if (nameId == 0)
return new NameMapping(0);
- return this.database.nameMappings[nameId];
+ return database.nameMappings[nameId];
}
public override void Dispose()
{
base.Dispose();
- this.view.Dispose();
+ view.Dispose();
}
}
@@ -117,10 +116,10 @@ namespace ICSharpCode.Profiler.Controller.Data
public int ProcessorFrequency {
get {
- return this.database.processorFrequency;
+ return database.processorFrequency;
}
set {
- this.database.processorFrequency = value;
+ database.processorFrequency = value;
}
}
@@ -131,7 +130,7 @@ namespace ICSharpCode.Profiler.Controller.Data
throw new InvalidOperationException("TempFileDatabase cannot write DataSets other than UnmanagedProfilingDataSet!");
database.AddDataset((byte *)uDataSet.StartPtr.ToPointer(), uDataSet.Length, uDataSet.NativeStartPosition, uDataSet.NativeRootFuncInfoPosition, uDataSet.IsFirst);
- this.database.is64Bit = uDataSet.Is64Bit;
+ database.is64Bit = uDataSet.Is64Bit;
}
public void Close()
@@ -144,21 +143,21 @@ namespace ICSharpCode.Profiler.Controller.Data
public void WriteMappings(IEnumerable mappings)
{
foreach (NameMapping nm in mappings)
- this.database.nameMappings.Add(nm.Id, nm);
+ database.nameMappings.Add(nm.Id, nm);
}
public void WritePerformanceCounterData(IEnumerable counters)
{
- this.database.counters.AddRange(counters);
+ database.counters.AddRange(counters);
}
public void WriteEventData(IEnumerable events)
{
- this.database.events.AddRange(events);
+ database.events.AddRange(events);
}
public int DataSetCount {
- get { return this.database.DataSetCount; }
+ get { return database.DataSetCount; }
}
}
#endregion
@@ -181,23 +180,23 @@ namespace ICSharpCode.Profiler.Controller.Data
{
byte[] data = new byte[length];
Marshal.Copy(new IntPtr(ptr), data, 0, (int)length);
- if (this.currentWrite != null)
- this.file.EndWrite(this.currentWrite);
- this.streamInfos.Add(new StreamInfo { NativeStartPosition = nativeStartPosition, NativeRootFuncInfoStartPosition = nativeRootFuncInfoStartPosition,
- StreamStartPosition = this.file.Length, StreamLength = length, IsFirst = isFirst });
- this.currentWrite = this.file.BeginWrite(data, 0, (int)length, null, null);
+ if (currentWrite != null)
+ file.EndWrite(currentWrite);
+ streamInfos.Add(new StreamInfo { NativeStartPosition = nativeStartPosition, NativeRootFuncInfoStartPosition = nativeRootFuncInfoStartPosition,
+ StreamStartPosition = file.Length, StreamLength = length, IsFirst = isFirst });
+ currentWrite = file.BeginWrite(data, 0, (int)length, null, null);
}
void NotifyFinish()
{
- if (this.currentWrite != null) {
- this.file.EndWrite(this.currentWrite);
- this.currentWrite = null;
+ if (currentWrite != null) {
+ file.EndWrite(currentWrite);
+ currentWrite = null;
}
- this.file.Flush();
+ file.Flush();
- if (this.streamInfos.Count > 0)
- this.mmf = MemoryMappedFile.Open(file);//Name, FileAccess.Read, FileShare.ReadWrite);
+ if (streamInfos.Count > 0)
+ mmf = MemoryMappedFile.Open(file);//Name, FileAccess.Read, FileShare.ReadWrite);
}
///
@@ -205,9 +204,9 @@ namespace ICSharpCode.Profiler.Controller.Data
///
public void Close()
{
- if (this.mmf != null)
- this.mmf.Close();
- this.file.Close();
+ if (mmf != null)
+ mmf.Close();
+ file.Close();
}
///
@@ -229,7 +228,7 @@ namespace ICSharpCode.Profiler.Controller.Data
throw new IndexOutOfRangeException("index needs to be between 0 and " + (streamInfos.Count - 1)
+ "\nActual value: " + index);
- if (this.mmf == null)
+ if (mmf == null)
throw new InvalidOperationException("All writers have to be closed before reading the data from the database!");
return new DataSet(this, mmf.MapView(streamInfos[index].StreamStartPosition, streamInfos[index].StreamLength), streamInfos[index].NativeStartPosition,
@@ -243,16 +242,16 @@ namespace ICSharpCode.Profiler.Controller.Data
/// Used to report the progress of writing all DataSets, returning false tells WriteTo to cancel the process.
public void WriteTo(IProfilingDataWriter writer, Predicate progressReport)
{
- writer.ProcessorFrequency = this.processorFrequency;
- writer.WriteMappings(this.nameMappings.Values);
- writer.WritePerformanceCounterData(this.counters);
- writer.WriteEventData(this.events);
+ writer.ProcessorFrequency = processorFrequency;
+ writer.WriteMappings(nameMappings.Values);
+ writer.WritePerformanceCounterData(counters);
+ writer.WriteEventData(events);
- for (int i = 0; i < this.DataSetCount; i++) {
- using (UnmanagedProfilingDataSet dataSet = this.LoadDataSet(i))
+ for (int i = 0; i < DataSetCount; i++) {
+ using (UnmanagedProfilingDataSet dataSet = LoadDataSet(i))
writer.WriteDataSet(dataSet);
- if (!progressReport.Invoke((i + 1) / (double)this.DataSetCount))
+ if (!progressReport.Invoke((i + 1) / (double)DataSetCount))
break;
}
}
@@ -321,7 +320,7 @@ namespace ICSharpCode.Profiler.Controller.Data
/// Returns the number of DataSets stored in the database.
///
public int DataSetCount {
- get { return this.streamInfos.Count; }
+ get { return streamInfos.Count; }
}
///
diff --git a/src/AddIns/Analysis/Profiler/Controller/Data/UnitTestRootCallTreeNode.cs b/src/AddIns/Analysis/Profiler/Controller/Data/UnitTestRootCallTreeNode.cs
index c431530281..6af9e1bfe2 100644
--- a/src/AddIns/Analysis/Profiler/Controller/Data/UnitTestRootCallTreeNode.cs
+++ b/src/AddIns/Analysis/Profiler/Controller/Data/UnitTestRootCallTreeNode.cs
@@ -12,7 +12,7 @@ namespace ICSharpCode.Profiler.Controller.Data
///
public class UnitTestRootCallTreeNode : CallTreeNode
{
- List unitTests = null;
+ List unitTests;
///
/// Creates a new UnitTestRootCallTreeNode.
@@ -40,7 +40,7 @@ namespace ICSharpCode.Profiler.Controller.Data
///
public override bool IsActiveAtStart {
get {
- return (this.unitTests == null) ? false : this.unitTests.Any(test => test.IsActiveAtStart);
+ return (unitTests == null) ? false : unitTests.Any(test => test.IsActiveAtStart);
}
}
@@ -66,7 +66,7 @@ namespace ICSharpCode.Profiler.Controller.Data
}
///
- public override CallTreeNode Merge(System.Collections.Generic.IEnumerable nodes)
+ public override CallTreeNode Merge(IEnumerable nodes)
{
// throw new ShouldNeverHappenException();
throw new NotSupportedException("Cannot merge a UnitTestRootCallTreeNode (should never be possible)");
@@ -75,7 +75,7 @@ namespace ICSharpCode.Profiler.Controller.Data
///
public override int GetHashCode()
{
- return (this.unitTests == null) ? 0 : this.unitTests.Aggregate(0, (sum, item) => sum ^= item.GetHashCode());
+ return (unitTests == null) ? 0 : unitTests.Aggregate(0, (sum, item) => sum ^= item.GetHashCode());
}
///
diff --git a/src/AddIns/Analysis/Profiler/Controller/Data/UnitTestWriter.cs b/src/AddIns/Analysis/Profiler/Controller/Data/UnitTestWriter.cs
index 87c0fd197c..ad866cdfb7 100644
--- a/src/AddIns/Analysis/Profiler/Controller/Data/UnitTestWriter.cs
+++ b/src/AddIns/Analysis/Profiler/Controller/Data/UnitTestWriter.cs
@@ -47,8 +47,8 @@ namespace ICSharpCode.Profiler.Controller.Data
///
public int ProcessorFrequency {
- get { return this.targetWriter.ProcessorFrequency; }
- set { this.targetWriter.ProcessorFrequency = value; }
+ get { return targetWriter.ProcessorFrequency; }
+ set { targetWriter.ProcessorFrequency = value; }
}
///
@@ -62,13 +62,13 @@ namespace ICSharpCode.Profiler.Controller.Data
FindUnitTests(dataSet.RootNode, list);
if (list.Count > 0) {
- this.targetWriter.WriteDataSet(
+ targetWriter.WriteDataSet(
new UnitTestDataSet(new UnitTestRootCallTreeNode(list), dataSet.IsFirst)
);
} else {
// proposed fix for http://community.sharpdevelop.net/forums/t/10533.aspx
// discuss with Daniel
- this.targetWriter.WriteDataSet(dataSet);
+ targetWriter.WriteDataSet(dataSet);
}
}
@@ -90,32 +90,32 @@ namespace ICSharpCode.Profiler.Controller.Data
}
///
- public void WriteMappings(System.Collections.Generic.IEnumerable mappings)
+ public void WriteMappings(IEnumerable mappings)
{
- this.targetWriter.WriteMappings(mappings);
+ targetWriter.WriteMappings(mappings);
}
///
public void Close()
{
- this.targetWriter.Close();
+ targetWriter.Close();
}
///
public void WritePerformanceCounterData(IEnumerable counters)
{
- this.targetWriter.WritePerformanceCounterData(counters);
+ targetWriter.WritePerformanceCounterData(counters);
}
///
public void WriteEventData(IEnumerable events)
{
- this.targetWriter.WriteEventData(events);
+ targetWriter.WriteEventData(events);
}
///
public int DataSetCount {
- get { return this.targetWriter.DataSetCount; }
+ get { return targetWriter.DataSetCount; }
}
}
}
diff --git a/src/AddIns/Analysis/Profiler/Controller/Data/UnmanagedCallTreeNode.cs b/src/AddIns/Analysis/Profiler/Controller/Data/UnmanagedCallTreeNode.cs
index 3ca9d0f6f1..d0a23f015f 100644
--- a/src/AddIns/Analysis/Profiler/Controller/Data/UnmanagedCallTreeNode.cs
+++ b/src/AddIns/Analysis/Profiler/Controller/Data/UnmanagedCallTreeNode.cs
@@ -3,7 +3,6 @@
using System;
using System.Collections.Generic;
-using System.Collections.ObjectModel;
using System.Linq;
namespace ICSharpCode.Profiler.Controller.Data
@@ -25,7 +24,7 @@ namespace ICSharpCode.Profiler.Controller.Data
this.parent = parent;
}
- public override System.Linq.IQueryable Children {
+ public override IQueryable Children {
get {
dataSet.VerifyAccess();
@@ -47,35 +46,35 @@ namespace ICSharpCode.Profiler.Controller.Data
public override NameMapping NameMapping {
get {
- return this.dataSet.GetMapping(this.data->Id);
+ return dataSet.GetMapping(data->Id);
}
}
public override int RawCallCount {
get {
dataSet.VerifyAccess(); // need to verify before deferencing data
- return this.data->CallCount;
+ return data->CallCount;
}
}
public int Index {
get {
dataSet.VerifyAccess(); // need to verify before deferencing data
- return (int)(this.data->TimeSpent >> 56);
+ return (int)(data->TimeSpent >> 56);
}
}
public override bool IsActiveAtStart {
get {
dataSet.VerifyAccess(); // need to verify before deferencing data
- return (this.data->TimeSpent & ((ulong)1 << 55)) != 0;
+ return (data->TimeSpent & ((ulong)1 << 55)) != 0;
}
}
public override long CpuCyclesSpent {
get {
dataSet.VerifyAccess(); // need to verify before deferencing data
- return (long)(this.data->TimeSpent & CpuCycleMask);
+ return (long)(data->TimeSpent & CpuCycleMask);
}
}
@@ -83,7 +82,7 @@ namespace ICSharpCode.Profiler.Controller.Data
get {
dataSet.VerifyAccess();
- long result = (long)(this.data->TimeSpent & CpuCycleMask);
+ long result = (long)(data->TimeSpent & CpuCycleMask);
TargetProcessPointer32* childrenPtr = FunctionInfo.GetChildren32(data);
for (int i = 0; i <= data->LastChildIndex; i++)
@@ -99,19 +98,19 @@ namespace ICSharpCode.Profiler.Controller.Data
public override CallTreeNode Parent {
get {
- return this.parent;
+ return parent;
}
}
public override double TimeSpent {
get {
- return this.CpuCyclesSpent / (1000.0 * this.dataSet.ProcessorFrequency);
+ return CpuCyclesSpent / (1000.0 * dataSet.ProcessorFrequency);
}
}
public override double TimeSpentSelf {
get {
- return this.CpuCyclesSpentSelf / (1000.0 * this.dataSet.ProcessorFrequency);
+ return CpuCyclesSpentSelf / (1000.0 * dataSet.ProcessorFrequency);
}
}
@@ -135,7 +134,7 @@ namespace ICSharpCode.Profiler.Controller.Data
{
UnmanagedCallTreeNode32 node = other as UnmanagedCallTreeNode32;
if (node != null) {
- return node.data == this.data;
+ return node.data == data;
}
return false;
diff --git a/src/AddIns/Analysis/Profiler/Controller/Data/UnmanagedProfilingDataSet.cs b/src/AddIns/Analysis/Profiler/Controller/Data/UnmanagedProfilingDataSet.cs
index 41707716b5..7ad98589c5 100644
--- a/src/AddIns/Analysis/Profiler/Controller/Data/UnmanagedProfilingDataSet.cs
+++ b/src/AddIns/Analysis/Profiler/Controller/Data/UnmanagedProfilingDataSet.cs
@@ -82,12 +82,12 @@ namespace ICSharpCode.Profiler.Controller.Data
internal unsafe FunctionInfo* GetFunctionInfo(TargetProcessPointer ptr)
{
- return (FunctionInfo*)this.TranslatePointer(ptr);
+ return (FunctionInfo*)TranslatePointer(ptr);
}
internal unsafe FunctionInfo* GetRootFunctionInfo()
{
- return GetFunctionInfo(this.nativeRootFuncInfoPosition);
+ return GetFunctionInfo(nativeRootFuncInfoPosition);
}
///
@@ -96,7 +96,7 @@ namespace ICSharpCode.Profiler.Controller.Data
public unsafe CallTreeNode RootNode {
get {
VerifyAccess();
- if (this.is64Bit)
+ if (is64Bit)
return new UnmanagedCallTreeNode64(
this,
GetRootFunctionInfo(),
diff --git a/src/AddIns/Analysis/Profiler/Controller/ExtensionMethods.cs b/src/AddIns/Analysis/Profiler/Controller/ExtensionMethods.cs
index deb6a0cd52..c00e89a229 100644
--- a/src/AddIns/Analysis/Profiler/Controller/ExtensionMethods.cs
+++ b/src/AddIns/Analysis/Profiler/Controller/ExtensionMethods.cs
@@ -8,9 +8,7 @@ using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
-using System.Reflection;
using System.Text;
-using System.Text.RegularExpressions;
using ICSharpCode.Profiler.Controller.Data;
diff --git a/src/AddIns/Analysis/Profiler/Controller/Interprocess/AtomicBoolean.cs b/src/AddIns/Analysis/Profiler/Controller/Interprocess/AtomicBoolean.cs
index 3856c30593..364c549b5e 100644
--- a/src/AddIns/Analysis/Profiler/Controller/Interprocess/AtomicBoolean.cs
+++ b/src/AddIns/Analysis/Profiler/Controller/Interprocess/AtomicBoolean.cs
@@ -48,7 +48,7 @@ namespace ICSharpCode.Profiler.Interprocess
///
public override int GetHashCode()
{
- return this.Value.GetHashCode();
+ return Value.GetHashCode();
}
///
@@ -62,7 +62,7 @@ namespace ICSharpCode.Profiler.Interprocess
///
public bool Equals(AtomicBoolean other)
{
- return this.Value == other.Value;
+ return Value == other.Value;
}
///
diff --git a/src/AddIns/Analysis/Profiler/Controller/Interprocess/MemoryMappedFile.cs b/src/AddIns/Analysis/Profiler/Controller/Interprocess/MemoryMappedFile.cs
index 04073e8417..1e81f0d8fa 100644
--- a/src/AddIns/Analysis/Profiler/Controller/Interprocess/MemoryMappedFile.cs
+++ b/src/AddIns/Analysis/Profiler/Controller/Interprocess/MemoryMappedFile.cs
@@ -9,12 +9,12 @@ using System.Threading;
namespace ICSharpCode.Profiler.Interprocess
{
// aliases for WIN32 types
- using WORD = System.Int16;
- using DWORD = System.Int32;
- using ULONG = System.UInt32;
- using LPVOID = System.IntPtr;
- using DWORD_PTR = System.IntPtr;
- using HANDLE = System.IntPtr;
+ using WORD = Int16;
+ using DWORD = Int32;
+ using ULONG = UInt32;
+ using LPVOID = IntPtr;
+ using DWORD_PTR = IntPtr;
+ using HANDLE = IntPtr;
///
/// Represents a memory mapped file.
diff --git a/src/AddIns/Analysis/Profiler/Controller/Interprocess/UnmanagedCircularBuffer.cs b/src/AddIns/Analysis/Profiler/Controller/Interprocess/UnmanagedCircularBuffer.cs
index 7bca42f38f..26c5cff14d 100644
--- a/src/AddIns/Analysis/Profiler/Controller/Interprocess/UnmanagedCircularBuffer.cs
+++ b/src/AddIns/Analysis/Profiler/Controller/Interprocess/UnmanagedCircularBuffer.cs
@@ -59,7 +59,7 @@ namespace ICSharpCode.Profiler.Interprocess
public static readonly int SynchronizationOverheadSize = sizeof(UnmanagedCircularBufferHeader);
#region Construction
- private UnmanagedCircularBuffer(IntPtr bufferPointer, int bufferLength)
+ UnmanagedCircularBuffer(IntPtr bufferPointer, int bufferLength)
{
// we need space for the header and at least 2 bytes of data (because the buffer can never be completely filled)
if (bufferLength < sizeof(UnmanagedCircularBufferHeader) + 2)
@@ -281,7 +281,7 @@ namespace ICSharpCode.Profiler.Interprocess
// wait until there's data
while (startOffset == endOffset) {
lock (circularBuffer.closeLock) {
- if (this.circularBuffer.isClosed) {
+ if (circularBuffer.isClosed) {
Monitor.Pulse(circularBuffer.closeLock);
return 0;
}
diff --git a/src/AddIns/Analysis/Profiler/Controller/Profiler.Controller.csproj b/src/AddIns/Analysis/Profiler/Controller/Profiler.Controller.csproj
index cc1c4e1afa..4bd298cc17 100644
--- a/src/AddIns/Analysis/Profiler/Controller/Profiler.Controller.csproj
+++ b/src/AddIns/Analysis/Profiler/Controller/Profiler.Controller.csproj
@@ -10,7 +10,7 @@
Properties
ICSharpCode.Profiler.Controller
ICSharpCode.Profiler.Controller
- v4.0
+ v4.5
512
True
False
@@ -46,7 +46,8 @@
false
false
true
- Client
+
+
true
diff --git a/src/AddIns/Analysis/Profiler/Controller/Profiler.cs b/src/AddIns/Analysis/Profiler/Controller/Profiler.cs
index 253764d6b1..ddabbc1fac 100644
--- a/src/AddIns/Analysis/Profiler/Controller/Profiler.cs
+++ b/src/AddIns/Analysis/Profiler/Controller/Profiler.cs
@@ -69,10 +69,10 @@ namespace ICSharpCode.Profiler.Controller
public int ProcessorFrequency
{
get {
- if (this.is64Bit)
- return this.memHeader64->ProcessorFrequency;
+ if (is64Bit)
+ return memHeader64->ProcessorFrequency;
else
- return this.memHeader32->ProcessorFrequency;
+ return memHeader32->ProcessorFrequency;
}
}
@@ -202,7 +202,7 @@ namespace ICSharpCode.Profiler.Controller
///
public void EnableDataCollection()
{
- this.enableDC = true;
+ enableDC = true;
}
///
@@ -210,8 +210,8 @@ namespace ICSharpCode.Profiler.Controller
///
public void DisableDataCollection()
{
- this.enableDC = false;
- this.isFirstDC = true;
+ enableDC = false;
+ isFirstDC = true;
}
///
@@ -321,16 +321,16 @@ namespace ICSharpCode.Profiler.Controller
void DataCollection()
{
while (!stopDC) {
- this.Pause();
- this.threadListMutex.WaitOne();
+ Pause();
+ threadListMutex.WaitOne();
- if (this.is64Bit)
+ if (is64Bit)
CollectData64();
else
CollectData32();
- this.threadListMutex.ReleaseMutex();
- this.Continue();
+ threadListMutex.ReleaseMutex();
+ Continue();
Thread.Sleep(500);
}
}
@@ -342,7 +342,7 @@ namespace ICSharpCode.Profiler.Controller
ulong now = GetRdtsc();
- ThreadLocalData32* item = (ThreadLocalData32*)TranslatePointer(this.memHeader32->LastThreadListItem);
+ ThreadLocalData32* item = (ThreadLocalData32*)TranslatePointer(memHeader32->LastThreadListItem);
List> stackList = new List>();
@@ -363,8 +363,8 @@ namespace ICSharpCode.Profiler.Controller
item = (ThreadLocalData32*)TranslatePointer(item->Predecessor);
}
- if (this.enableDC) {
- this.AddDataset(fullView.Pointer,
+ if (enableDC) {
+ AddDataset(fullView.Pointer,
memHeader32->NativeAddress + memHeader32->HeapOffset,
memHeader32->Allocator.startPos - memHeader32->NativeAddress,
memHeader32->Allocator.pos - memHeader32->Allocator.startPos,
@@ -381,7 +381,7 @@ namespace ICSharpCode.Profiler.Controller
memHeader32->RootFuncInfoAddress = TranslatePointerBack32(root);
- item = (ThreadLocalData32*)TranslatePointer(this.memHeader32->LastThreadListItem);
+ item = (ThreadLocalData32*)TranslatePointer(memHeader32->LastThreadListItem);
now = GetRdtsc();
@@ -415,8 +415,8 @@ namespace ICSharpCode.Profiler.Controller
unsafe void AddDataset(byte *ptr, TargetProcessPointer nativeStartPosition, long offset, long length, bool isFirst, TargetProcessPointer nativeRootFuncInfoPosition)
{
using (DataSet dataSet = new DataSet(this, ptr + offset, length, nativeStartPosition, nativeRootFuncInfoPosition, isFirst, is64Bit)) {
- lock (this.dataWriter) {
- this.dataWriter.WriteDataSet(dataSet);
+ lock (dataWriter) {
+ dataWriter.WriteDataSet(dataSet);
if (usePerformanceCounters) {
if (performanceCounterInstanceName == null)
@@ -487,7 +487,7 @@ namespace ICSharpCode.Profiler.Controller
while (readString != null) {
readString = ReadString(stream);
if (readString != null && !ProcessCommand(readString))
- this.LogString(readString);
+ LogString(readString);
}
}
@@ -526,23 +526,23 @@ namespace ICSharpCode.Profiler.Controller
LogString("Using 64-bit hook.");
LogString("Starting process, waiting for profiler hook...");
- this.profilee = new Process();
+ profilee = new Process();
- this.profilee.EnableRaisingEvents = true;
- this.profilee.StartInfo = this.psi;
- this.profilee.Exited += new EventHandler(ProfileeExited);
+ profilee.EnableRaisingEvents = true;
+ profilee.StartInfo = psi;
+ profilee.Exited += new EventHandler(ProfileeExited);
- this.enableDC = this.profilerOptions.EnableDCAtStart;
- this.isFirstDC = true;
+ enableDC = profilerOptions.EnableDCAtStart;
+ isFirstDC = true;
- Debug.WriteLine("Launching profiler for " + this.psi.FileName + "...");
- this.profilee.Start();
+ Debug.WriteLine("Launching profiler for " + psi.FileName + "...");
+ profilee.Start();
- this.logger.Start(nativeToManagedBuffer.CreateReadingStream());
+ logger.Start(nativeToManagedBuffer.CreateReadingStream());
// GC references currentSession
- if (this.profilerOptions.EnableDC) {
- this.dataCollector.Start();
+ if (profilerOptions.EnableDC) {
+ dataCollector.Start();
}
OnSessionStarted(EventArgs.Empty);
@@ -554,11 +554,11 @@ namespace ICSharpCode.Profiler.Controller
///
void Pause()
{
- this.accessEventHandle.Reset();
+ accessEventHandle.Reset();
if (is64Bit)
- this.memHeader64->ExclusiveAccess = 1;
+ memHeader64->ExclusiveAccess = 1;
else
- this.memHeader32->ExclusiveAccess = 1;
+ memHeader32->ExclusiveAccess = 1;
Thread.MemoryBarrier();
if (is64Bit)
while (!AllThreadsWait64()) ;
@@ -569,7 +569,7 @@ namespace ICSharpCode.Profiler.Controller
bool AllThreadsWait32()
{
try {
- this.threadListMutex.WaitOne();
+ threadListMutex.WaitOne();
} catch (AbandonedMutexException) {
// profilee crashed while holding the thread list mutex
return true;
@@ -577,7 +577,7 @@ namespace ICSharpCode.Profiler.Controller
bool isWaiting = true;
- ThreadLocalData32* item = (ThreadLocalData32*)TranslatePointer(this.memHeader32->LastThreadListItem);
+ ThreadLocalData32* item = (ThreadLocalData32*)TranslatePointer(memHeader32->LastThreadListItem);
while (item != null) {
if (item->InLock == 1)
@@ -586,7 +586,7 @@ namespace ICSharpCode.Profiler.Controller
item = (ThreadLocalData32*)TranslatePointer(item->Predecessor);
}
- this.threadListMutex.ReleaseMutex();
+ threadListMutex.ReleaseMutex();
return isWaiting;
}
@@ -597,10 +597,10 @@ namespace ICSharpCode.Profiler.Controller
void Continue()
{
if (is64Bit)
- this.memHeader64->ExclusiveAccess = 0;
+ memHeader64->ExclusiveAccess = 0;
else
- this.memHeader32->ExclusiveAccess = 0;
- this.accessEventHandle.Set();
+ memHeader32->ExclusiveAccess = 0;
+ accessEventHandle.Set();
}
unsafe void ProfileeExited(object sender, EventArgs e)
@@ -610,34 +610,34 @@ namespace ICSharpCode.Profiler.Controller
DeregisterProfiler();
- this.stopDC = true;
+ stopDC = true;
Debug.WriteLine("Closing native to managed buffer");
nativeToManagedBuffer.Close(true);
Debug.WriteLine("Joining logger thread...");
- this.logger.Join();
+ logger.Join();
Debug.WriteLine("Logger thread joined!");
- if (this.profilerOptions.EnableDC)
- this.dataCollector.Join();
+ if (profilerOptions.EnableDC)
+ dataCollector.Join();
// Do last data collection
- if (this.is64Bit)
+ if (is64Bit)
CollectData64();
else
CollectData32();
isRunning = false;
- this.dataWriter.WritePerformanceCounterData(performanceCounters);
- this.dataWriter.Close();
+ dataWriter.WritePerformanceCounterData(performanceCounters);
+ dataWriter.Close();
OnSessionEnded(EventArgs.Empty);
}
internal void LogString(string text)
{
- this.profilerOutput.AppendLine(text);
+ profilerOutput.AppendLine(text);
OnOutputUpdated(EventArgs.Empty);
}
@@ -654,7 +654,7 @@ namespace ICSharpCode.Profiler.Controller
internal unsafe void* TranslatePointer(TargetProcessPointer ptr)
{
- if (this.is64Bit)
+ if (is64Bit)
return TranslatePointer64(ptr.To64());
else
return TranslatePointer32(ptr.To32());
@@ -698,8 +698,8 @@ namespace ICSharpCode.Profiler.Controller
string returnType = parts[3];
IList parameters = parts.Skip(5).ToList();
- lock (this.dataWriter) {
- this.dataWriter.WriteMappings(new NameMapping[] {new NameMapping(id, returnType, name, parameters)});
+ lock (dataWriter) {
+ dataWriter.WriteMappings(new NameMapping[] {new NameMapping(id, returnType, name, parameters)});
}
return true;
@@ -712,8 +712,8 @@ namespace ICSharpCode.Profiler.Controller
int id = int.Parse(parts[1], CultureInfo.InvariantCulture);
string name = parts[3] + ((string.IsNullOrEmpty(parts[4])) ? "" : " - " + parts[4]);
- lock (this.dataWriter) {
- this.dataWriter.WriteMappings(new[] {new NameMapping(id, null, name, null)});
+ lock (dataWriter) {
+ dataWriter.WriteMappings(new[] {new NameMapping(id, null, name, null)});
}
return true;
@@ -726,8 +726,8 @@ namespace ICSharpCode.Profiler.Controller
int name = int.Parse(parts[2], CultureInfo.InvariantCulture);
string data = parts[3];
- lock (this.dataWriter) {
- this.dataWriter.WriteEventData(new[] { new EventDataEntry() { DataSetId = this.dataWriter.DataSetCount, NameId = name, Type = (EventType)type, Data = data } });
+ lock (dataWriter) {
+ dataWriter.WriteEventData(new[] { new EventDataEntry() { DataSetId = dataWriter.DataSetCount, NameId = name, Type = (EventType)type, Data = data } });
}
return true;
} else {
@@ -820,27 +820,27 @@ namespace ICSharpCode.Profiler.Controller
stopDC = true;
nativeToManagedBuffer.Close(true);
try {
- this.profilee.Kill();
+ profilee.Kill();
} catch (InvalidOperationException) {
// can happen if profilee has already exited
}
if (logger != null && logger.IsAlive) {
- this.logger.Join();
+ logger.Join();
}
if (dataCollector != null && dataCollector.IsAlive) {
- this.dataCollector.Join();
+ dataCollector.Join();
}
- this.fullView.Dispose();
- this.file.Close();
+ fullView.Dispose();
+ file.Close();
- this.threadListMutex.Close();
- this.accessEventHandle.Close();
+ threadListMutex.Close();
+ accessEventHandle.Close();
- this.dataWriter.Close();
+ dataWriter.Close();
- this.profilee.Dispose();
+ profilee.Dispose();
}
}
@@ -865,13 +865,13 @@ namespace ICSharpCode.Profiler.Controller
public override int ProcessorFrequency {
get {
- return this.profiler.ProcessorFrequency;
+ return profiler.ProcessorFrequency;
}
}
internal unsafe override void* TranslatePointer(TargetProcessPointer ptr)
{
- return this.profiler.TranslatePointer(ptr);
+ return profiler.TranslatePointer(ptr);
}
}
#endregion
diff --git a/src/AddIns/Analysis/Profiler/Controller/ProfilerOptions.cs b/src/AddIns/Analysis/Profiler/Controller/ProfilerOptions.cs
index 1c443b608c..638b2d8908 100644
--- a/src/AddIns/Analysis/Profiler/Controller/ProfilerOptions.cs
+++ b/src/AddIns/Analysis/Profiler/Controller/ProfilerOptions.cs
@@ -3,7 +3,6 @@
using System;
using System.Collections.Generic;
-using System.Diagnostics;
using System.Linq;
using ICSharpCode.Profiler.Controller.Data;
@@ -41,7 +40,7 @@ namespace ICSharpCode.Profiler.Controller
/// Gets the performance counters selected for monitoring.
///
public PerformanceCounterDescriptor[] Counters {
- get { return this.counters; }
+ get { return counters; }
}
///
diff --git a/src/AddIns/Analysis/Profiler/Controller/Properties/AssemblyInfo.cs b/src/AddIns/Analysis/Profiler/Controller/Properties/AssemblyInfo.cs
index 602c11c3a8..9c67ac314f 100644
--- a/src/AddIns/Analysis/Profiler/Controller/Properties/AssemblyInfo.cs
+++ b/src/AddIns/Analysis/Profiler/Controller/Properties/AssemblyInfo.cs
@@ -5,7 +5,6 @@ using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
-using System.Security.Permissions;
// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
diff --git a/src/AddIns/Analysis/Profiler/Controller/Queries/NodePath.cs b/src/AddIns/Analysis/Profiler/Controller/Queries/NodePath.cs
index dce6fe2af6..6ca098f4c1 100644
--- a/src/AddIns/Analysis/Profiler/Controller/Queries/NodePath.cs
+++ b/src/AddIns/Analysis/Profiler/Controller/Queries/NodePath.cs
@@ -58,7 +58,7 @@ namespace ICSharpCode.Profiler.Controller.Queries
if (other == null)
return false;
- return other.lastId == this.lastId && object.Equals(other.previous, this.previous);
+ return other.lastId == lastId && object.Equals(other.previous, previous);
}
///
diff --git a/src/AddIns/Analysis/Profiler/Controller/Queries/QueryBase.cs b/src/AddIns/Analysis/Profiler/Controller/Queries/QueryBase.cs
index cfb70a6a81..45d04eb71f 100644
--- a/src/AddIns/Analysis/Profiler/Controller/Queries/QueryBase.cs
+++ b/src/AddIns/Analysis/Profiler/Controller/Queries/QueryBase.cs
@@ -1,10 +1,9 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
-using ICSharpCode.Profiler.Controller.Data;
using System;
-using System.Collections.Generic;
using System.Linq;
+using ICSharpCode.Profiler.Controller.Data;
namespace ICSharpCode.Profiler.Controller.Queries
{
@@ -53,7 +52,7 @@ namespace ICSharpCode.Profiler.Controller.Queries
///
public CallTreeNode GetNodeByPath(params int[] nameIds)
{
- CallTreeNode node = this.Root;
+ CallTreeNode node = Root;
for (int i = 1; i < nameIds.Length; i++) {
node = node.Children.FirstOrDefault(n => n.NameMapping.Id == nameIds[i]);
diff --git a/src/AddIns/Analysis/Profiler/Controller/Queries/QueryCompiler.cs b/src/AddIns/Analysis/Profiler/Controller/Queries/QueryCompiler.cs
index 5769cf865e..9caa0b43ab 100644
--- a/src/AddIns/Analysis/Profiler/Controller/Queries/QueryCompiler.cs
+++ b/src/AddIns/Analysis/Profiler/Controller/Queries/QueryCompiler.cs
@@ -1,15 +1,14 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
-using ICSharpCode.Profiler.Controller.Data;
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
-using System.Text;
using Microsoft.CSharp;
+using ICSharpCode.Profiler.Controller.Data;
namespace ICSharpCode.Profiler.Controller.Queries
{
@@ -69,11 +68,11 @@ namespace ICSharpCode.Profiler.Controller.Queries
/// true, if successful, otherwise false.
public bool Compile()
{
- if (string.IsNullOrEmpty(this.currentQuery))
+ if (string.IsNullOrEmpty(currentQuery))
return false;
lock (queryCache) {
- if (!queryCache.ContainsKey(this.currentQuery)) {
+ if (!queryCache.ContainsKey(currentQuery)) {
string code = text + PreprocessString(currentQuery) + textEnd;
CompilerResults results = csc.CompileAssemblyFromSource(GetParameters(), code);
report(results.Errors.Cast());
@@ -81,7 +80,7 @@ namespace ICSharpCode.Profiler.Controller.Queries
if (results.Errors.Count > 0)
return false;
- queryCache.Add(this.currentQuery, results.CompiledAssembly);
+ queryCache.Add(currentQuery, results.CompiledAssembly);
} else {
report(new List().AsEnumerable()); // clear errors list
}
@@ -101,7 +100,7 @@ namespace ICSharpCode.Profiler.Controller.Queries
Assembly assembly;
lock (queryCache)
- assembly = queryCache[this.currentQuery];
+ assembly = queryCache[currentQuery];
QueryBase queryContainer = assembly.CreateInstance("Query") as QueryBase;
queryContainer.Provider = provider;
@@ -130,7 +129,7 @@ namespace ICSharpCode.Profiler.Controller.Queries
cp.OutputAssembly = Path.GetTempFileName();
cp.ReferencedAssemblies.Add("System.dll");
cp.ReferencedAssemblies.Add("System.Core.dll");
- cp.ReferencedAssemblies.Add(this.GetType().Assembly.Location);
+ cp.ReferencedAssemblies.Add(GetType().Assembly.Location);
cp.WarningLevel = 4;
cp.TreatWarningsAsErrors = true;
diff --git a/src/AddIns/Analysis/Profiler/Controller/structs.cs b/src/AddIns/Analysis/Profiler/Controller/structs.cs
index 42ccdfe5d7..1a92af36af 100644
--- a/src/AddIns/Analysis/Profiler/Controller/structs.cs
+++ b/src/AddIns/Analysis/Profiler/Controller/structs.cs
@@ -2,7 +2,6 @@
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
-using System.Collections.Generic;
using System.Globalization;
using System.Runtime.InteropServices;
@@ -126,7 +125,7 @@ namespace ICSharpCode.Profiler.Controller
public override bool Equals(object obj)
{
if (obj is TargetProcessPointer) {
- return ((TargetProcessPointer)obj).pointer.Pointer == this.pointer.Pointer;
+ return ((TargetProcessPointer)obj).pointer.Pointer == pointer.Pointer;
}
return false;
diff --git a/src/AddIns/Analysis/Profiler/Frontend/AddIn/ICSharpCode.Profiler.AddIn.addin b/src/AddIns/Analysis/Profiler/Frontend/AddIn/ICSharpCode.Profiler.AddIn.addin
index 7f0261bd91..03c9fd4cc2 100644
--- a/src/AddIns/Analysis/Profiler/Frontend/AddIn/ICSharpCode.Profiler.AddIn.addin
+++ b/src/AddIns/Analysis/Profiler/Frontend/AddIn/ICSharpCode.Profiler.AddIn.addin
@@ -99,7 +99,7 @@
+ class = "ICSharpCode.Profiler.AddIn.Commands.RunSelectedTestsWithProfilerCommand"/>
diff --git a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Profiler.AddIn.csproj b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Profiler.AddIn.csproj
index 9223b8b91e..9725d27709 100644
--- a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Profiler.AddIn.csproj
+++ b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Profiler.AddIn.csproj
@@ -7,7 +7,7 @@
Library
ICSharpCode.Profiler.AddIn
ICSharpCode.Profiler.AddIn
- v4.0
+ v4.5
False
False
4
@@ -90,8 +90,8 @@
General.xaml
+
-
ComparisonView.xaml
@@ -140,6 +140,14 @@
+
+ {53DCA265-3C3C-42F9-B647-F72BA678122B}
+ ICSharpCode.NRefactory.CSharp
+
+
+ {3B2A5653-EC97-4001-BB9B-D90F1AF2C371}
+ ICSharpCode.NRefactory
+
{2748AD25-9C63-4E12-877B-4DCE96FBED54}
ICSharpCode.SharpDevelop
diff --git a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/CopySelectedData.cs b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/CopySelectedData.cs
index a96201f2b4..cc9a671965 100644
--- a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/CopySelectedData.cs
+++ b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/CopySelectedData.cs
@@ -6,10 +6,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
-using System.Windows.Controls;
-using ICSharpCode.Core;
-using ICSharpCode.Profiler.AddIn.Views;
using ICSharpCode.Profiler.Controls;
namespace ICSharpCode.Profiler.AddIn.Commands
diff --git a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/DomMenuCommand.cs b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/DomMenuCommand.cs
index d37fdd0fed..537600046e 100644
--- a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/DomMenuCommand.cs
+++ b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/DomMenuCommand.cs
@@ -5,9 +5,9 @@ using System;
using System.Collections.ObjectModel;
using System.Linq;
+using ICSharpCode.NRefactory.CSharp;
+using ICSharpCode.NRefactory.TypeSystem;
using ICSharpCode.SharpDevelop;
-using ICSharpCode.SharpDevelop.Dom;
-using ICSharpCode.SharpDevelop.Dom.CSharp;
using ICSharpCode.SharpDevelop.Project;
namespace ICSharpCode.Profiler.AddIn.Commands
@@ -21,7 +21,7 @@ namespace ICSharpCode.Profiler.AddIn.Commands
public abstract override void Run();
- protected IMember GetMemberFromName(IClass c, string name, ReadOnlyCollection parameters)
+ protected IMember GetMemberFromName(ITypeDefinition c, string name, ReadOnlyCollection parameters)
{
if (name == null || c == null)
return null;
@@ -54,7 +54,7 @@ namespace ICSharpCode.Profiler.AddIn.Commands
matchWithSameParameterCount = method;
bool isCorrect = true;
for (int i = 0; i < method.Parameters.Count; i++) {
- if (parameters[i] != ambience.Convert(method.Parameters[i])) {
+ if (parameters[i] != ambience.ConvertVariable(method.Parameters[i])) {
isCorrect = false;
break;
}
@@ -67,20 +67,19 @@ namespace ICSharpCode.Profiler.AddIn.Commands
return matchWithSameParameterCount ?? matchWithSameName;
}
- protected IClass GetClassFromName(string name)
+ protected ITypeDefinition GetClassFromName(string name)
{
if (name == null)
return null;
if (ProjectService.OpenSolution == null)
return null;
- foreach (IProject project in ProjectService.OpenSolution.Projects) {
- IProjectContent content = ParserService.GetProjectContent(project);
- if (content != null) {
- IClass c = content.GetClassByReflectionName(name, true);
- if (c != null)
- return c;
- }
+ foreach (IProject project in SD.ProjectService.CurrentSolution.Projects) {
+ ICompilation compilation = SD.ParserService.GetCompilation(project);
+ IType type = compilation.FindType(new FullTypeName(name));
+ ITypeDefinition definition = type.GetDefinition();
+ if (definition != null)
+ return definition;
}
return null;
diff --git a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/FindCallsOfSelected.cs b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/FindCallsOfSelected.cs
index d5bc8abf48..d9bb150eee 100644
--- a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/FindCallsOfSelected.cs
+++ b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/FindCallsOfSelected.cs
@@ -3,16 +3,11 @@
using System;
using System.Collections.Generic;
-using System.Diagnostics;
using System.Linq;
-using System.Text;
-using System.Windows.Controls;
using ICSharpCode.Core;
-using ICSharpCode.Profiler.AddIn.Views;
using ICSharpCode.Profiler.Controller.Data;
using ICSharpCode.Profiler.Controller.Queries;
-using ICSharpCode.Profiler.Controls;
namespace ICSharpCode.Profiler.AddIn.Commands
{
diff --git a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/FindReferences.cs b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/FindReferences.cs
index 84e570fd70..259804f11f 100644
--- a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/FindReferences.cs
+++ b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/FindReferences.cs
@@ -3,8 +3,7 @@
using System;
using System.Linq;
-using ICSharpCode.Core;
-using ICSharpCode.SharpDevelop.Dom;
+using ICSharpCode.NRefactory.TypeSystem;
using ICSharpCode.SharpDevelop.Gui;
using ICSharpCode.SharpDevelop.Refactoring;
@@ -22,7 +21,7 @@ namespace ICSharpCode.Profiler.AddIn.Commands
if (selectedItem == null)
return;
- IClass c = GetClassFromName(selectedItem.FullyQualifiedClassName);
+ ITypeDefinition c = GetClassFromName(selectedItem.FullyQualifiedClassName);
if (c == null)
return;
@@ -35,9 +34,7 @@ namespace ICSharpCode.Profiler.AddIn.Commands
string memberName = member.DeclaringType.Name + "." + member.Name;
using (AsynchronousWaitDialog monitor = AsynchronousWaitDialog.ShowWaitDialog("${res:SharpDevelop.Refactoring.FindReferences}"))
{
- FindReferencesAndRenameHelper.ShowAsSearchResults(
- StringParser.Parse("${res:SharpDevelop.Refactoring.ReferencesTo}", new StringTagPair("Name", memberName)),
- RefactoringService.FindReferences(member, monitor));
+ FindReferencesAndRenameHelper.RunFindReferences(member);
}
}
}
diff --git a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/GoToDefinition.cs b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/GoToDefinition.cs
index e4d23f92f8..77a30e63e7 100644
--- a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/GoToDefinition.cs
+++ b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/GoToDefinition.cs
@@ -3,8 +3,9 @@
using System;
using System.Linq;
+using ICSharpCode.Core;
+using ICSharpCode.NRefactory.TypeSystem;
using ICSharpCode.SharpDevelop;
-using ICSharpCode.SharpDevelop.Dom;
namespace ICSharpCode.Profiler.AddIn.Commands
{
@@ -19,14 +20,13 @@ namespace ICSharpCode.Profiler.AddIn.Commands
public override void Run()
{
var selectedItem = GetSelectedItems().FirstOrDefault();
-
if (selectedItem != null) {
- IClass c = GetClassFromName(selectedItem.FullyQualifiedClassName);
+ ITypeDefinition c = GetClassFromName(selectedItem.FullyQualifiedClassName);
if (c != null) {
- IEntity member = GetMemberFromName(c, selectedItem.MethodName, selectedItem.Parameters);
- FilePosition position = c.ProjectContent.GetPosition(member ?? c);
- if (!position.IsEmpty && !string.IsNullOrEmpty(position.FileName)) {
- FileService.JumpToFilePosition(position.FileName, position.Line, position.Column);
+ IMember member = GetMemberFromName(c, selectedItem.MethodName, selectedItem.Parameters);
+ if (!member.Region.IsEmpty && !string.IsNullOrEmpty(member.Region.FileName)) {
+ FileName fn = new FileName(member.Region.FileName);
+ SD.FileService.JumpToFilePosition(fn, member.Region.BeginLine, member.Region.BeginColumn);
}
}
}
diff --git a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/ProfileExecutable.cs b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/ProfileExecutable.cs
index b18c3c27f2..a4d5affd8d 100644
--- a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/ProfileExecutable.cs
+++ b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/ProfileExecutable.cs
@@ -3,8 +3,8 @@
using System;
using ICSharpCode.Core;
+using ICSharpCode.SharpDevelop;
using ICSharpCode.Profiler.AddIn.Dialogs;
-using ICSharpCode.SharpDevelop.Gui;
namespace ICSharpCode.Profiler.AddIn.Commands
{
@@ -19,7 +19,7 @@ namespace ICSharpCode.Profiler.AddIn.Commands
public override void Run()
{
ProfileExecutableForm form = new ProfileExecutableForm();
- form.Owner = WorkbenchSingleton.MainWindow;
+ form.Owner = SD.Workbench.MainWindow;
form.ShowDialog();
}
}
diff --git a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/ProfileProject.cs b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/ProfileProject.cs
index c6f72a9512..a2585b1ca1 100644
--- a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/ProfileProject.cs
+++ b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/ProfileProject.cs
@@ -8,7 +8,6 @@ using ICSharpCode.SharpDevelop.Project;
namespace ICSharpCode.Profiler.AddIn.Commands
{
- using ICSharpCode.Profiler.Controller;
///
/// Description of RunProject
diff --git a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/ProfilerMenuCommand.cs b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/ProfilerMenuCommand.cs
index 155c0cc5dc..127e484d09 100644
--- a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/ProfilerMenuCommand.cs
+++ b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/ProfilerMenuCommand.cs
@@ -5,12 +5,11 @@ using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows;
-using System.Windows.Controls;
using System.Windows.Shapes;
using ICSharpCode.Core;
-using ICSharpCode.Profiler.AddIn.Views;
using ICSharpCode.Profiler.Controls;
+using ICSharpCode.Profiler.AddIn.Views;
namespace ICSharpCode.Profiler.AddIn.Commands
{
diff --git a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/RunTestWithProfilerCommand.cs b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/RunTestWithProfilerCommand.cs
index 3c6f44892a..e77a275381 100644
--- a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/RunTestWithProfilerCommand.cs
+++ b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/RunTestWithProfilerCommand.cs
@@ -1,16 +1,24 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
-using ICSharpCode.SharpDevelop.Project;
+using System.Collections.Generic;
+using System.Linq;
+using ICSharpCode.Core;
+using ICSharpCode.Profiler.Controller;
+using ICSharpCode.Profiler.Controller.Data;
+using ICSharpCode.SharpDevelop;
using ICSharpCode.UnitTesting;
namespace ICSharpCode.Profiler.AddIn.Commands
{
- public class RunTestWithProfilerCommand : AbstractRunTestCommand
+ public class RunSelectedTestsWithProfilerCommand : AbstractMenuCommand
{
- protected override ITestRunner CreateTestRunner(IProject project)
+ public override void Run()
{
- return new ProfilerTestRunner();
+ ITestService testService = SD.GetRequiredService();
+ IEnumerable tests = TestableCondition.GetTests(testService.OpenSolution, Owner);
+ string path = tests.FirstOrDefault().ParentProject.Project.GetSessionFileName();
+ testService.RunTestsAsync(tests, new TestExecutionOptions { ProcessRunner = new ProfilerProcessRunner(new ProfilingDataSQLiteWriter(path), new ProfilerOptions()) }).FireAndForget();
}
}
}
diff --git a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/SetAsRoot.cs b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/SetAsRoot.cs
index ea21364714..873b77e7fd 100644
--- a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/SetAsRoot.cs
+++ b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/SetAsRoot.cs
@@ -3,16 +3,11 @@
using System;
using System.Collections.Generic;
-using System.Diagnostics;
using System.Linq;
-using System.Text;
-using System.Windows.Controls;
using ICSharpCode.Core;
-using ICSharpCode.Profiler.AddIn.Views;
using ICSharpCode.Profiler.Controller.Data;
using ICSharpCode.Profiler.Controller.Queries;
-using ICSharpCode.Profiler.Controls;
namespace ICSharpCode.Profiler.AddIn.Commands
{
diff --git a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/ShowFunctions.cs b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/ShowFunctions.cs
index 6fb43bdd93..26744647fb 100644
--- a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/ShowFunctions.cs
+++ b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/ShowFunctions.cs
@@ -2,15 +2,10 @@
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
-using System.Collections.Generic;
using System.Linq;
-using System.Windows.Controls;
using ICSharpCode.Core;
-using ICSharpCode.Profiler.AddIn.Views;
-using ICSharpCode.Profiler.Controller;
using ICSharpCode.Profiler.Controls;
-using ICSharpCode.SharpDevelop;
namespace ICSharpCode.Profiler.AddIn.Commands
{
diff --git a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Dialogs/ProfileExecutableForm.xaml.cs b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Dialogs/ProfileExecutableForm.xaml.cs
index c0e62ee062..8eca6a0cc1 100644
--- a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Dialogs/ProfileExecutableForm.xaml.cs
+++ b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Dialogs/ProfileExecutableForm.xaml.cs
@@ -11,7 +11,6 @@ using ICSharpCode.Core;
using ICSharpCode.Profiler.Controller;
using ICSharpCode.Profiler.Controller.Data;
using ICSharpCode.SharpDevelop;
-using ICSharpCode.SharpDevelop.Gui;
using Microsoft.Win32;
namespace ICSharpCode.Profiler.AddIn.Dialogs
@@ -28,7 +27,7 @@ namespace ICSharpCode.Profiler.AddIn.Dialogs
void btnCancelClick(object sender, RoutedEventArgs e)
{
- this.Close();
+ Close();
}
void btnStartClick(object sender, RoutedEventArgs e)
@@ -58,13 +57,13 @@ namespace ICSharpCode.Profiler.AddIn.Dialogs
if (runner != null) {
runner.RunFinished += delegate {
- WorkbenchSingleton.SafeThreadCall(() => FileService.OpenFile(outputPath));
+ SD.MainThread.InvokeIfRequired(() => FileService.OpenFile(outputPath));
};
runner.Run();
}
- this.Close();
+ Close();
} catch (ProfilerException ex) {
MessageService.ShowError(ex.Message);
}
diff --git a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Dialogs/ProfilerControlWindow.xaml.cs b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Dialogs/ProfilerControlWindow.xaml.cs
index d6c7f58032..4bf2f2e32c 100644
--- a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Dialogs/ProfilerControlWindow.xaml.cs
+++ b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Dialogs/ProfilerControlWindow.xaml.cs
@@ -1,17 +1,9 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
-using ICSharpCode.Core;
using System;
-using System.Collections.Generic;
-using System.Text;
using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-using ICSharpCode.Profiler.Controller;
+using ICSharpCode.Core;
namespace ICSharpCode.Profiler.AddIn.Dialogs
{
@@ -34,7 +26,7 @@ namespace ICSharpCode.Profiler.AddIn.Dialogs
void CollectDataChecked(object sender, RoutedEventArgs e)
{
try {
- this.runner.Profiler.EnableDataCollection();
+ runner.Profiler.EnableDataCollection();
} catch (Exception ex) {
MessageService.ShowException(ex);
}
@@ -43,7 +35,7 @@ namespace ICSharpCode.Profiler.AddIn.Dialogs
void CollectDataUnchecked(object sender, RoutedEventArgs e)
{
try {
- this.runner.Profiler.DisableDataCollection();
+ runner.Profiler.DisableDataCollection();
} catch (Exception ex) {
MessageService.ShowException(ex);
}
@@ -51,8 +43,8 @@ namespace ICSharpCode.Profiler.AddIn.Dialogs
void ShutdownClick(object sender, RoutedEventArgs e)
{
- this.AllowClose = true;
- this.runner.Stop();
+ AllowClose = true;
+ runner.Stop();
}
void WindowClosing(object sender, System.ComponentModel.CancelEventArgs e)
diff --git a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Extensions.cs b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Extensions.cs
index f064201fd3..118eaaff00 100644
--- a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Extensions.cs
+++ b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Extensions.cs
@@ -1,7 +1,6 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
-using ICSharpCode.SharpDevelop.Gui;
using System;
using System.Globalization;
using System.IO;
@@ -34,15 +33,14 @@ namespace ICSharpCode.Profiler.AddIn
if (!File.Exists(path))
return;
FileService.OpenFile(path);
- if (!project.ReadOnly) {
+ if (!project.IsReadOnly) {
FileProjectItem file = new FileProjectItem(project, ItemType.Content, "ProfilingSessions\\" + Path.GetFileName(path));
ProjectService.AddProjectItem(project, file);
ProjectBrowserPad.RefreshViewAsync();
project.Save();
}
};
-
- WorkbenchSingleton.SafeThreadCall(updater);
+ SD.MainThread.InvokeIfRequired(updater);
}
}
}
diff --git a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/OptionPanels/General.cs b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/OptionPanels/General.cs
index 457f9a1c79..e7013af155 100644
--- a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/OptionPanels/General.cs
+++ b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/OptionPanels/General.cs
@@ -2,15 +2,8 @@
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
-using System.Collections.Generic;
-using System.Windows.Forms;
-using System.Windows.Forms.Integration;
-using ICSharpCode.Core;
-using ICSharpCode.Profiler.Controller;
-using ICSharpCode.SharpDevelop;
using ICSharpCode.SharpDevelop.Gui;
-using System.Windows.Threading;
namespace ICSharpCode.Profiler.AddIn.OptionPanels
{
diff --git a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/OptionPanels/OptionWrapper.cs b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/OptionPanels/OptionWrapper.cs
index fa8feb2fbe..faa351e1be 100644
--- a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/OptionPanels/OptionWrapper.cs
+++ b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/OptionPanels/OptionWrapper.cs
@@ -4,13 +4,13 @@
using System;
using ICSharpCode.Core;
using ICSharpCode.Profiler.Controller;
-using ICSharpCode.Profiler.Controller.Data;
+using ICSharpCode.SharpDevelop;
namespace ICSharpCode.Profiler.AddIn.OptionPanels
{
public static class OptionWrapper
{
- static Properties properties = PropertyService.Get("ProfilerOptions", new Properties());
+ static Properties properties = SD.PropertyService.Get("ProfilerOptions", new Properties());
public static int SharedMemorySize {
get { return properties.Get("SharedMemorySize", ProfilerOptions.DefaultSharedMemorySize) / 1024 / 1024; }
diff --git a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/ProfilerProcessRunner.cs b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/ProfilerProcessRunner.cs
new file mode 100644
index 0000000000..9a7d98568b
--- /dev/null
+++ b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/ProfilerProcessRunner.cs
@@ -0,0 +1,139 @@
+// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
+// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
+
+using System;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.IO;
+using System.Linq;
+using System.Threading.Tasks;
+using ICSharpCode.Profiler.Controller;
+using ICSharpCode.Profiler.Controller.Data;
+using ICSharpCode.SharpDevelop;
+using ICSharpCode.SharpDevelop.Gui;
+
+namespace ICSharpCode.Profiler.AddIn
+{
+ ///
+ /// Description of ProfilerProcessRunner.
+ ///
+ public class ProfilerProcessRunner : IProcessRunner
+ {
+ ProcessStartInfo psi;
+ ProfilerRunner profilerRunner;
+ Process runningProcess;
+ IProfilingDataWriter writer;
+ ProfilerOptions options;
+ readonly object lockObj = new object();
+ bool wasStarted;
+
+ public ProfilerProcessRunner(IProfilingDataWriter writer, ProfilerOptions options)
+ {
+ if (writer == null)
+ throw new ArgumentNullException("writer");
+ if (options == null)
+ throw new ArgumentNullException("options");
+ this.writer = writer;
+ this.options = options;
+ this.psi = new ProcessStartInfo();
+ wasStarted = false;
+ }
+
+ public Task RunInOutputPadAsync(MessageViewCategory outputCategory, string program, params string[] arguments)
+ {
+ throw new NotImplementedException();
+ }
+
+ public void Start(string program, params string[] arguments)
+ {
+ lock (lockObj) {
+ if (wasStarted)
+ throw new InvalidOperationException();
+
+ profilerRunner = new ProfilerRunner(psi, true, writer);
+ profilerRunner.RunFinished += delegate { hasExited = true; };
+ runningProcess = profilerRunner.Run();
+ wasStarted = true;
+ }
+ }
+
+ public void StartCommandLine(string commandLine)
+ {
+ string[] args = ProcessRunner.CommandLineToArgumentArray(commandLine);
+ Start(args.FirstOrDefault() ?? "", args.Skip(1).ToArray());
+ }
+
+ public void Kill()
+ {
+ profilerRunner.Stop();
+ }
+
+ TaskCompletionSource
+
+ {53DCA265-3C3C-42F9-B647-F72BA678122B}
+ ICSharpCode.NRefactory.CSharp
+
{3B2A5653-EC97-4001-BB9B-D90F1AF2C371}
ICSharpCode.NRefactory
+
+
+