@zendesk/react-measure-timing-hooks
Version:
react hooks for measuring time to interactive and time to render of components
130 lines • 3.32 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.actionsFixture = exports.mountedPlacements = exports.id = void 0;
exports.id = 'test';
exports.mountedPlacements = ['beacon'];
exports.actionsFixture = [
{
type: 'stage-change',
marker: 'point',
timestamp: 100,
stage: 'loading',
source: 'beacon',
mountedPlacements: exports.mountedPlacements,
timingId: exports.id,
entry: {
duration: 100,
startTime: 0,
entryType: 'mark',
name: exports.id,
toJSON: () => ({}),
},
},
{
type: 'render',
source: 'beacon',
marker: 'start',
timestamp: 100,
mountedPlacements: exports.mountedPlacements,
timingId: exports.id,
entry: {
duration: 0,
startTime: 0,
entryType: 'mark',
name: exports.id,
toJSON: () => ({}),
},
},
{
type: 'render',
source: 'beacon',
marker: 'end',
timestamp: 200,
mountedPlacements: exports.mountedPlacements,
timingId: exports.id,
entry: {
duration: 100,
startTime: 100,
entryType: 'mark',
name: exports.id,
toJSON: () => ({}),
},
},
{
type: 'stage-change',
marker: 'point',
timestamp: 200,
stage: 'ready',
source: 'beacon',
mountedPlacements: exports.mountedPlacements,
timingId: exports.id,
entry: {
duration: 100,
startTime: 100,
entryType: 'mark',
name: exports.id,
toJSON: () => ({}),
},
},
{
type: 'render',
source: 'beacon',
marker: 'start',
timestamp: 200,
mountedPlacements: exports.mountedPlacements,
timingId: exports.id,
entry: {
duration: 0,
startTime: 200,
entryType: 'mark',
name: exports.id,
toJSON: () => ({}),
},
},
{
type: 'render',
source: 'beacon',
marker: 'end',
timestamp: 300,
mountedPlacements: exports.mountedPlacements,
timingId: exports.id,
entry: {
duration: 100,
startTime: 200,
entryType: 'mark',
name: exports.id,
toJSON: () => ({}),
},
},
{
type: 'unresponsive',
source: 'observer',
marker: 'start',
timestamp: 400,
mountedPlacements: exports.mountedPlacements,
timingId: exports.id,
entry: {
duration: 0,
startTime: 300,
entryType: 'mark',
name: exports.id,
toJSON: () => ({}),
},
},
{
type: 'unresponsive',
source: 'observer',
marker: 'end',
timestamp: 900,
mountedPlacements: exports.mountedPlacements,
timingId: exports.id,
entry: {
duration: 300,
startTime: 600,
entryType: 'mark',
name: exports.id,
toJSON: () => ({}),
},
},
];
//# sourceMappingURL=actionsFixture.js.map