PerfMarkMeasure Configuration

interface IPerfMarkMeasureConfiguration {
    markEndPrefix?: string;
    markNameMap?: {
        [key: string]: string;
    };
    markPrefix?: string;
    measureNameMap?: {
        [key: string]: string;
    };
    measurePrefix?: string;
    uniqueNames?: boolean;
    useEndMarks?: boolean;
    useMarks?: boolean;
    useMeasures?: boolean;
}

Properties

markEndPrefix?: string

Identifies the prefix for the "end" mark of a perf event, defaults to "ai.prfmrk.end.", the event name is appended for the mark

markNameMap?: {
    [key: string]: string;
}

Provides a mapping between the internal perf names and the value used to create the mark, when a map is provided but no mapping is present that event will be ignored.

markPrefix?: string

Identifies the prefix for the mark, defaults to "ai.prfmrk.", the event name is appended for the mark

measureNameMap?: {
    [key: string]: string;
}

Provides a mapping between the internal perf names and the value used to create the measure, when no measureNameMap is provided this will default to using the markNameMap and when a map is provided but no mapping is present that event will be ignored.

measurePrefix?: string

Identifies the prefix for the mark, defaults to "ai.prfmsr.", the event name is appended for the measure name

uniqueNames?: boolean

Make the marks and measures unique by appending a numeric value to the prefix value, defaults to false. Marks and measure for the same perfEvent will be assigned the same unique numeric value

useEndMarks?: boolean

Should the Performance manager create a mark when the event is fired, defaults to false

useMarks?: boolean

Should the Performance manager create and use window.performance.mark(), defaults to true

useMeasures?: boolean

Should the Performance manager create and use window.performance.measure(), defaults to true