@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
69 lines (68 loc) • 2.07 kB
TypeScript
import { Rpc } from '../rpc/rpc';
import { PerformanceProfileDatabase } from './performance-profile-database';
/**
* Performance measurement class.
*/
export declare class PerformanceProfile {
private static monitorName;
private static instance;
private database;
private rpc;
private rpcObservablePerformanceClient;
private rpcObservablePerformanceServer;
private subscription;
private moduleVersionMap;
private rpcObservablePerformanceConfigClient;
/**
* Gets the current PerformanceProfile instance.
*/
static get current(): PerformanceProfile;
static get database(): PerformanceProfileDatabase;
/**
* Record Route navigation performance measurement.
*/
static logRouteNavigation(source: string, start: number, end: number, url: string, target?: string, errorMessage?: string): void;
/**
* Record Null packet.
*/
static logNull(source: string): void;
/**
* Record XHR or Fetch performance measurement for PowerShell.
*/
private static logXhrFetchPowerShell;
/**
* Record XHR or Fetch performance measurement for CIM.
*/
private static logXhrFetchCim;
/**
* Record XHR or Fetch performance measurement for Batch.
*/
private static logXhrFetchBatch;
/**
* Record XHR or Fetch performance measurement for general.
*/
private static logXhrFetch;
/**
* Record WebSocket performance measurement.
*/
private static logWebSocketPowerShell;
/**
* Record WebSocket performance measurement.
*/
private static logWebSocketCim;
private static powershellApi;
private static cimApi;
private static batchApi;
private static getBetween;
enable(rpc: Rpc): void;
disable(rpc: Rpc): void;
private checkPerformanceProfile;
registerRpc(rpc: Rpc): void;
updateMonitors(): void;
private log;
private logAnyway;
private registerHttp;
private registerPowerShellStream;
private registerCimStream;
private removeCimStreamDetailData;
}