"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createCDPPerformance = exports.timeStart = exports.aegis = void 0;
/* eslint-disable @typescript-eslint/no-unused-vars */
const config_1 = require("@/config");
exports.aegis = {
    reportEvent: (argv) => { },
    reportTime: (argv) => { },
    report: (argv) => { },
};
const timeStart = (name) => {
    const start = Date.now();
    return (ext = {}) => {
        const end = Date.now();
        const duration = end - start;
        exports.aegis.reportTime(Object.assign(Object.assign({ name,
            duration }, ext), { ext3: config_1.config.isRemote ? 'remote' : 'local' }));
    };
};
exports.timeStart = timeStart;
const createCDPPerformance = (perf) => (Object.assign({ devtoolsToDebugServer: 0, debugServerReceiveFromDevtools: 0, debugServerToApp: 0, appReceive: 0, appResponse: 0, debugServerReceiveFromApp: 0, debugServerToDevtools: 0, devtoolsReceive: 0 }, (perf || {})));
exports.createCDPPerformance = createCDPPerformance;
