Skip to content

Commit

Permalink
Merge pull request #124 from keymetrics/collect_dependencies
Browse files Browse the repository at this point in the history
fix: #121 allow user to disable dependencies collection
  • Loading branch information
wallet77 authored Jun 14, 2018
2 parents b3749e8 + bf5e568 commit d25d294
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/pmx.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ PMX.init = function(opts) {
custom_probes : true,
network : false,
ports : false,
collectDependencies : true,

// VXX options
// ignoreFilter.url is aliased to ignore_routes
Expand All @@ -77,12 +78,13 @@ PMX.init = function(opts) {
if (opts.http)
PMX.http(opts);

// WIP
var __td = setTimeout(function() {
Dependencies.collect();
}, 2000);
if (opts.collectDependencies) {
var __td = setTimeout(function() {
Dependencies.collect();
}, 2000);

__td.unref();
__td.unref();
}

PMX.catchAll(opts);

Expand Down

0 comments on commit d25d294

Please sign in to comment.