Skip to content

Commit

Permalink
Enable --log-timer-events option
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
robertrossmann committed Dec 28, 2015
1 parent 67d0fac commit 2a32ab2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/_mocha
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ program
.option('--no-timeouts', 'disables timeouts, given implicitly with --debug')
.option('--opts <path>', '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')
Expand Down
1 change: 1 addition & 0 deletions bin/mocha
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit 2a32ab2

Please sign in to comment.