From 2a32ab2c1669cdf423f4f814d225e9a4a8208276 Mon Sep 17 00:00:00 2001 From: Robert Rossmann Date: Thu, 26 Nov 2015 22:16:14 +0100 Subject: [PATCH] Enable --log-timer-events option This provides better insights when profiling application using --prof switch. Especially useful when the log is processed by https://v8.googlecode.com/svn/branches/bleeding_edge/tools/profviz/profviz.html. --- bin/_mocha | 1 + bin/mocha | 1 + 2 files changed, 2 insertions(+) diff --git a/bin/_mocha b/bin/_mocha index f8068835f6..f7a39f2cde 100755 --- a/bin/_mocha +++ b/bin/_mocha @@ -90,6 +90,7 @@ program .option('--no-timeouts', 'disables timeouts, given implicitly with --debug') .option('--opts ', 'specify opts path', 'test/mocha.opts') .option('--prof', 'log statistical profiling information') + .option('--log-timer-events', 'Time events including external callbacks') .option('--recursive', 'include sub directories') .option('--reporters', 'display available reporters') .option('--throw-deprecation', 'throw an exception anytime a deprecated function is used') diff --git a/bin/mocha b/bin/mocha index 031ef56bff..47f790e3fe 100755 --- a/bin/mocha +++ b/bin/mocha @@ -32,6 +32,7 @@ process.argv.slice(2).forEach(function(arg){ case '--es_staging': case '--no-deprecation': case '--prof': + case '--log-timer-events': case '--throw-deprecation': case '--trace-deprecation': case '--allow-natives-syntax':