MCPcopy Index your code
hub / github.com/nodejs/node / createDirectoryWatcherWithLogging

Function createDirectoryWatcherWithLogging

test/fixtures/snapshot/typescript.js:115666–115683  ·  view source on GitHub ↗
(file, cb, flags, options, detailInfo1, detailInfo2)

Source from the content-addressed store, hash-verified

115664 };
115665 }
115666 function createDirectoryWatcherWithLogging(file, cb, flags, options, detailInfo1, detailInfo2) {
115667 var watchInfo = "DirectoryWatcher:: Added:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
115668 log(watchInfo);
115669 var start = ts.timestamp();
115670 var watcher = triggerInvokingFactory.watchDirectory(file, cb, flags, options, detailInfo1, detailInfo2);
115671 var elapsed = ts.timestamp() - start;
115672 log("Elapsed:: ".concat(elapsed, "ms ").concat(watchInfo));
115673 return {
115674 close: function () {
115675 var watchInfo = "DirectoryWatcher:: Close:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
115676 log(watchInfo);
115677 var start = ts.timestamp();
115678 watcher.close();
115679 var elapsed = ts.timestamp() - start;
115680 log("Elapsed:: ".concat(elapsed, "ms ").concat(watchInfo));
115681 }
115682 };
115683 }
115684 function createTriggerLoggingAddWatch(key) {
115685 return function (file, cb, flags, options, detailInfo1, detailInfo2) { return plainInvokeFactory[key].call(/*thisArgs*/ undefined, file, function () {
115686 var args = [];

Callers

nothing calls this directly

Calls 4

getWatchInfoFunction · 0.85
concatMethod · 0.80
logFunction · 0.70
closeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…