@mikezimm/fps-core-v7
Version:
Library of reusable core interfaces, types and constants migrated from fps-library-v2
33 lines • 2.21 kB
TypeScript
/**
* 2024-09-09: Migrated from v2/src/logic/molecules/Performance
*/
import { DisplayMode } from '../../../types/@msft/1.15.2/displayMode';
import { IFpsErrorObject, IUnifiedPerformanceOpsKeys } from '../../../types/fps-returns/common/IFpsErrorObject';
import { IPerformanceOp, ILoadPerformanceSS7, ILoadPerformanceALVFM, ILoadPerformance, IPerformanceOpWithDetails } from './IPerformance';
import { IStartPerformOp, IEndPerformOp, IPerformanceSettings } from './IPerformanceSettings';
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;
export declare function startPerformOp(label: string, editMode: DisplayMode | null, includeMsStr?: boolean): IPerformanceOp | null;
/**
*
* @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 startPerformOpV2(props: IStartPerformOp): IPerformanceOp | null;
export declare function updatePerformanceEnd(op: IPerformanceOp, updateMiliseconds: boolean, count: number | null): IPerformanceOp | null;
export declare function updatePerformanceEndV2(props: IEndPerformOp): IPerformanceOp | null;
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[];
/**
*
* @param result
* @param performanceSettings
* @param fetchOp
* @param key
* @param resultKey
*/
export declare function unifiedPerformanceEnd(result: IFpsErrorObject, performanceSettings: IPerformanceSettings, perfOp: IPerformanceOp, key: IUnifiedPerformanceOpsKeys, resultKey: any): IFpsErrorObject;
//# sourceMappingURL=functions.d.ts.map