@beincom/node-profile
Version:
``` npm install @beincom/node-profile # yarn add @beincom/node-profile ```
14 lines • 736 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.wallHandler = exports.collectWall = void 0;
const utils_1 = require("../utils");
const profile_handler_1 = require("./profile.handler");
const collectWall = (ms) => {
const profiler = (0, utils_1.getProfiler)();
const wallProfilerArgs = profiler.wallProfiler.startArgs;
const wallProfiler = profiler.wallProfiler.profiler;
return (0, profile_handler_1.collectProfileAfterMs)(wallProfiler, wallProfilerArgs, ms);
};
exports.collectWall = collectWall;
exports.wallHandler = (0, profile_handler_1.profileExpressHandler)('Wall', (req) => (0, exports.collectWall)(1000 * Number(req.query.seconds)));
//# sourceMappingURL=wall.handler.js.map