perfrunner-reporters
Version:
Home of the perfrunner reporters
24 lines (23 loc) • 828 B
TypeScript
import { AbstractChart, IViewData } from './abstract.chart';
import { IPerformanceResult } from '../types';
declare type ChartData = {
layoutDuration: number[];
recalcStyleDuration: number[];
scriptDuration: number[];
taskDuration: number[];
};
export declare class MetricsChartReporter extends AbstractChart<ChartData> {
readonly type: 'chart';
readonly name: string;
readonly title = "Common performance metrics";
yAxesLabelCalback: (value: string | number) => string;
protected getViewData: (rawData: IPerformanceResult) => IViewData<ChartData>;
protected getDatasetEntries: (viewData: ChartData) => {
label: string;
data: number[];
borderColor: string;
backgroundColor: string;
borderWidth: number;
}[];
}
export {};