"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");
/**
 * remove report because aegis could not access in npm registry
 */
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.isCluster ? 'remote' : 'local' }));
    };
};
exports.timeStart = timeStart;
const createCDPPerformance = (perf) => (Object.assign({ devtoolsToDebugServer: 0, debugServerReceiveFromDevtools: 0, debugServerToDevtools: 0, devtoolsReceive: 0 }, (perf || {})));
exports.createCDPPerformance = createCDPPerformance;
