diff --git a/BenchmarkDotNet.Artifacts/results/IdeCoreBenchmarks.FindReferencesBenchmarks-report-github.md b/BenchmarkDotNet.Artifacts/results/IdeCoreBenchmarks.FindReferencesBenchmarks-report-github.md new file mode 100644 index 0000000000000..c478939ad8e5a --- /dev/null +++ b/BenchmarkDotNet.Artifacts/results/IdeCoreBenchmarks.FindReferencesBenchmarks-report-github.md @@ -0,0 +1,14 @@ +``` ini + +BenchmarkDotNet=v0.12.1, OS=Windows 10.0.19042 +Intel Core i7-1065G7 CPU 1.30GHz, 1 CPU, 8 logical and 4 physical cores + [Host] : .NET Framework 4.8 (4.8.4250.0), X64 RyuJIT + + +``` +| Method | Mean | Error | +|------------------ |-----:|------:| +| RunFindReferences | NA | NA | + +Benchmarks with issues: + FindReferencesBenchmarks.RunFindReferences: DefaultJob diff --git a/BenchmarkDotNet.Artifacts/results/IdeCoreBenchmarks.FindReferencesBenchmarks-report.csv b/BenchmarkDotNet.Artifacts/results/IdeCoreBenchmarks.FindReferencesBenchmarks-report.csv new file mode 100644 index 0000000000000..1fce3a10f26cc --- /dev/null +++ b/BenchmarkDotNet.Artifacts/results/IdeCoreBenchmarks.FindReferencesBenchmarks-report.csv @@ -0,0 +1,2 @@ +Method,Job,AnalyzeLaunchVariance,EvaluateOverhead,MaxAbsoluteError,MaxRelativeError,MinInvokeCount,MinIterationTime,OutlierMode,Affinity,EnvironmentVariables,Jit,Platform,PowerPlanMode,Runtime,AllowVeryLargeObjects,Concurrent,CpuGroups,Force,HeapAffinitizeMask,HeapCount,NoAffinitize,RetainVm,Server,Arguments,BuildConfiguration,Clock,EngineFactory,NuGetReferences,Toolchain,IsMutator,InvocationCount,IterationCount,IterationTime,LaunchCount,MaxIterationCount,MaxWarmupIterationCount,MinIterationCount,MinWarmupIterationCount,RunStrategy,UnrollFactor,WarmupCount,Mean,Error +RunFindReferences,DefaultJob,False,Default,Default,Default,Default,Default,Default,11111111,Empty,RyuJit,X64,8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c,.NET 4.7.2,False,True,False,True,Default,Default,False,False,False,Default,Default,Default,Default,Default,Default,Default,1,Default,Default,Default,Default,Default,Default,Default,Default,16,Default,NA,NA diff --git a/BenchmarkDotNet.Artifacts/results/IdeCoreBenchmarks.FindReferencesBenchmarks-report.html b/BenchmarkDotNet.Artifacts/results/IdeCoreBenchmarks.FindReferencesBenchmarks-report.html new file mode 100644 index 0000000000000..ed344cd8d0e8c --- /dev/null +++ b/BenchmarkDotNet.Artifacts/results/IdeCoreBenchmarks.FindReferencesBenchmarks-report.html @@ -0,0 +1,28 @@ + + + + +IdeCoreBenchmarks.FindReferencesBenchmarks-20210125-145314 + + + + +

+BenchmarkDotNet=v0.12.1, OS=Windows 10.0.19042
+Intel Core i7-1065G7 CPU 1.30GHz, 1 CPU, 8 logical and 4 physical cores
+  [Host] : .NET Framework 4.8 (4.8.4250.0), X64 RyuJIT
+
+
+ + + + + +
MethodMeanError
RunFindReferencesNANA
+ + diff --git a/src/Tools/IdeCoreBenchmarks/FindReferencesBenchmarks.cs b/src/Tools/IdeCoreBenchmarks/FindReferencesBenchmarks.cs index 88afdcd9a66de..a22c4d55b763e 100644 --- a/src/Tools/IdeCoreBenchmarks/FindReferencesBenchmarks.cs +++ b/src/Tools/IdeCoreBenchmarks/FindReferencesBenchmarks.cs @@ -47,7 +47,8 @@ public void Setup() _workspace.TryApplyChanges(_workspace.CurrentSolution.WithOptions(_workspace.Options .WithChangedOption(StorageOptions.Database, StorageDatabase.SQLite) - .WithChangedOption(StorageOptions.DatabaseMustSucceed, true))); + .WithChangedOption(StorageOptions.DatabaseMustSucceed, true) + .WithChangedOption(StorageOptions.PrintDatabaseLocation, true))); Console.WriteLine("Opening roslyn. Attach to: " + Process.GetCurrentProcess().Id); diff --git a/src/Workspaces/Core/Portable/Storage/AbstractPersistentStorageService.cs b/src/Workspaces/Core/Portable/Storage/AbstractPersistentStorageService.cs index b5a0bafe8a9a7..99a5035758b40 100644 --- a/src/Workspaces/Core/Portable/Storage/AbstractPersistentStorageService.cs +++ b/src/Workspaces/Core/Portable/Storage/AbstractPersistentStorageService.cs @@ -94,6 +94,9 @@ internal IChecksummedPersistentStorage GetStorageWorker(Workspace workspace, Sol return NoOpPersistentStorage.Instance; } + if (workspace.Options.GetOption(StorageOptions.PrintDatabaseLocation)) + Console.WriteLine("Storage location: " + workingFolder); + // If we already had some previous cached service, let's let it start cleaning up if (_currentPersistentStorage != null) { diff --git a/src/Workspaces/Core/Portable/Storage/StorageOptions.cs b/src/Workspaces/Core/Portable/Storage/StorageOptions.cs index 50bc467bbb6c9..d457464a694c7 100644 --- a/src/Workspaces/Core/Portable/Storage/StorageOptions.cs +++ b/src/Workspaces/Core/Portable/Storage/StorageOptions.cs @@ -21,6 +21,8 @@ internal static class StorageOptions OptionName, nameof(Database), defaultValue: StorageDatabase.SQLite); public static readonly Option DatabaseMustSucceed = new( OptionName, nameof(DatabaseMustSucceed), defaultValue: false); + public static readonly Option PrintDatabaseLocation = new( + OptionName, nameof(PrintDatabaseLocation), defaultValue: false); } [ExportOptionProvider, Shared]