mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 09:35:36 -05:00
Add perf marks for query execution (#22082)
This commit is contained in:
24
src/sql/workbench/api/browser/mainThreadPerf.ts
Normal file
24
src/sql/workbench/api/browser/mainThreadPerf.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { MainThreadPerfShape } from 'sql/workbench/api/common/sqlExtHost.protocol';
|
||||
import { extHostNamedCustomer, IExtHostContext } from 'vs/workbench/services/extensions/common/extHostCustomers';
|
||||
import { SqlMainContext } from 'vs/workbench/api/common/extHost.protocol';
|
||||
import * as perf from 'vs/base/common/performance';
|
||||
|
||||
@extHostNamedCustomer(SqlMainContext.MainThreadPerf)
|
||||
export class MainThreadPerf implements MainThreadPerfShape {
|
||||
constructor(
|
||||
context: IExtHostContext,
|
||||
) { }
|
||||
|
||||
public $mark(name: string) {
|
||||
perf.mark(name);
|
||||
}
|
||||
|
||||
public dispose(): void {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user