How to use the dtrace-provider.DTraceProvider function in dtrace-provider

To help you get started, we’ve selected a few dtrace-provider examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hapijs / hapi / lib / dtrace.js View on Github external
var result = false;
    try {
        result = !!require.resolve('dtrace-provider');
    }
    catch (err) {}

    internals.DTrace.isInstalled = function () {

        return result;
    };

    return result;
};


internals.DTrace.Provider = internals.DTrace.isInstalled() && require('dtrace-provider').DTraceProvider;
github ldapjs / node-ldapjs / lib / dtrace.js View on Github external
Object.keys(SERVER_PROBES).forEach(function (p) {
        var args = SERVER_PROBES[p].splice(0);
        args.unshift(p);

        dtrace.DTraceProvider.prototype.addProbe.apply(SERVER_PROVIDER, args);
      });
    } catch (e) {

dtrace-provider

Native DTrace providers for node.js applications

BSD-2-Clause
Latest version published 5 years ago

Package Health Score

74 / 100
Full package analysis