mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 01:25:36 -05:00
25 lines
928 B
TypeScript
25 lines
928 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* 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 {
|
|
|
|
}
|
|
}
|