Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

support --perf-basic-prof

Rob Rauxc51119b8d8c8
diff --git a/bin/_mocha b/bin/_mocha
index f8068835..35ca2815 100755
--- a/bin/_mocha
+++ b/bin/_mocha
@@ -89,6 +89,7 @@ program
.option('--no-exit', 'require a clean shutdown of the event loop: mocha will not call process.exit')
.option('--no-timeouts', 'disables timeouts, given implicitly with --debug')
.option('--opts <path>', 'specify opts path', 'test/mocha.opts')
+ .option('--perf-basic-prof', 'enable perf linux profiler (basic support)')
.option('--prof', 'log statistical profiling information')
.option('--recursive', 'include sub directories')
.option('--reporters', 'display available reporters')
diff --git a/bin/mocha b/bin/mocha
index 031ef56b..22db154d 100755
--- a/bin/mocha
+++ b/bin/mocha
@@ -35,6 +35,7 @@ process.argv.slice(2).forEach(function(arg){
case '--throw-deprecation':
case '--trace-deprecation':
case '--allow-natives-syntax':
+ case '--perf-basic-prof':
args.unshift(arg);
break;
default: