@vscode/vscode-perf
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -10,6 +10,13 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.run = void 0; | ||
const chalk_1 = __importDefault(require("chalk")); | ||
const commander_1 = require("commander"); | ||
const perf_1 = require("./perf"); | ||
module.exports = async function (argv) { | ||
async function run(args) { | ||
if (args) { | ||
args.splice(0, 0, '', ''); // add dummy values for node and script name | ||
} | ||
else { | ||
args = process.argv; | ||
} | ||
commander_1.program | ||
@@ -23,3 +30,3 @@ .requiredOption('-b, --build <build>', 'executable location of the build to measure the performance of') | ||
.addOption(new commander_1.Option('--prof-append-timers <prof-append-timers>').hideHelp(true)); | ||
const opts = commander_1.program.parse(argv).opts(); | ||
const opts = commander_1.program.parse(args).opts(); | ||
try { | ||
@@ -40,3 +47,4 @@ await (0, perf_1.launch)({ | ||
} | ||
}; | ||
} | ||
exports.run = run; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@vscode/vscode-perf", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Tooling for evaluating performance of VS Code", | ||
@@ -19,2 +19,3 @@ "repository": { | ||
"main": "out/index", | ||
"typings": "index.d.ts", | ||
"scripts": { | ||
@@ -21,0 +22,0 @@ "compile": "tsc -p ./", |
Sorry, the diff of this file is not supported yet
18327
11
230