UNPKG

@zendesk/react-measure-timing-hooks

Version:

react hooks for measuring time to interactive and time to render of components

13 lines (12 loc) 952 B
import type { SpanType } from '../spanTypes'; export declare const RESOURCES_TEXT = "Show Resources"; export declare const MEASURES_TEXT = "Show Measures"; export declare const COLLAPSE_RENDER_SPANS_TEXT = "Collapse Renders"; export declare const COLLAPSE_ASSET_SPANS_TEXT = "Collapse Assets"; export declare const COLLAPSE_EMBER_RESOURCE_SPANS = "Collapse Ember"; export declare const COLLAPSE_IFRAME_SPANS = "Collapse iframes"; export declare const DETAILS_PANEL_WIDTH = 400; export type FilterOption = typeof RESOURCES_TEXT | typeof MEASURES_TEXT | typeof COLLAPSE_RENDER_SPANS_TEXT | typeof COLLAPSE_ASSET_SPANS_TEXT | typeof COLLAPSE_EMBER_RESOURCE_SPANS | typeof COLLAPSE_IFRAME_SPANS; export declare const FILTER_OPTIONS: FilterOption[]; export type SupportedSpanTypes = SpanType | 'resource-ember' | 'asset' | 'iframe' | 'element' | 'action' | 'error' | 'computed-span'; export declare const BAR_FILL_COLOR: Record<SupportedSpanTypes, string>;