Private diagnostic method to dump the active watchers

This commit is contained in:
Ash Wilson
2017-08-18 09:08:34 -04:00
parent a0bdc50535
commit e2c9cc1692
2 changed files with 19 additions and 1 deletions

View File

@@ -431,6 +431,14 @@ class NativeWatcherRegistry {
watcher.attachToNative(native, nativePath)
})
}
// Private: Generate a visual representation of the currently active watchers managed by this
// registry.
//
// Returns a {String} showing the tree structure.
print() {
return this.tree.print()
}
}
module.exports = {NativeWatcherRegistry}