diff --git a/bin/_mocha b/bin/_mocha index f8068835f6..35ca281524 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 ', '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 031ef56bff..22db154df6 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: