@mikezimm/npmfunctions
Version:
Functions used in my SPFx webparts
17 lines (16 loc) • 1.35 kB
TypeScript
import { DisplayMode } from '@microsoft/sp-core-library';
import { IPerformanceOp, ILoadPerformanceSS7, ILoadPerformanceALVFM, ILoadPerformance, IPerformanceOpWithDetails } from './IPerformance';
export declare function createBasePerformanceInit(editMode: DisplayMode, monitor: boolean): ILoadPerformance;
export declare function startPerformanceInit_ALVFM(editMode: DisplayMode, monitor: boolean): ILoadPerformanceALVFM;
export declare function startPerformanceInit_SS7(classic: boolean, modern: boolean, reload: boolean, editMode: DisplayMode, monitor: boolean): ILoadPerformanceSS7;
/**
*
* @param label
* @param editMode
* @param includeMsStr - Add time MS to startStr so that it is easier to verify timing. https://github.com/mikezimm/pivottiles7/issues/192
* @returns
*/
export declare function startPerformOp(label: string, editMode: DisplayMode, includeMsStr?: boolean): IPerformanceOp;
export declare function updatePerformanceEnd(op: IPerformanceOp, updateMiliseconds: boolean, count: number | null): IPerformanceOp;
export declare function updatePerformOpSimple(ops: IPerformanceOp[], count: number | null): IPerformanceOp[];
export declare function startPerformOpDetail(ops: IPerformanceOpWithDetails[], label: string, editMode: DisplayMode, update?: boolean, count?: number | null): IPerformanceOpWithDetails[];