Adding caching to execution plan and refactoring code and some other fixes (#18913)

* Making ep code modular for easy swithcing in and out

* Changing to innerText

* Fixing renames

* Fixing var name in one file
This commit is contained in:
Aasim Khan
2022-04-12 12:52:24 -07:00
committed by GitHub
parent 675969eebc
commit 387f4cd116
21 changed files with 1902 additions and 1122 deletions

View File

@@ -0,0 +1,22 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { ExecutionPlanFileView } from 'sql/workbench/contrib/executionPlan/browser/executionPlanFileView';
export class ExecutionPlanFileViewCache {
private static instance: ExecutionPlanFileViewCache;
public executionPlanFileViewMap: Map<string, ExecutionPlanFileView> = new Map();
private constructor() { }
public static getInstance(): ExecutionPlanFileViewCache {
if (!ExecutionPlanFileViewCache.instance) {
ExecutionPlanFileViewCache.instance = new ExecutionPlanFileViewCache();
}
return ExecutionPlanFileViewCache.instance;
}
}