lib/dtrace-async.js
/*
 * Each DTraceConsumer encapsulates a single DTrace enabling -- what normally
 * corresponds to an invocation of the dtrace(1M) command.  You provide a
 * script, which can have many probes, clauses, aggregations, and the like, but
 * it's all enabled, disabled, and consumed as a single unit.
 */
Each DTraceConsumer encapsulates a single DTrace enabling -- what normally
corresponds to an invocation of the dtrace(1M) command.  You provide a
script, which can have many probes, clauses, aggregations, and the like, but
it's all enabled, disabled, and consumed as a single unit.
Each DTraceConsumer encapsulates a single DTrace enabling -- what normally corresponds to an invocation of the dtrace ( 1M ) command . You provide a script which can have many probes clauses aggregations and the like but it ' s all enabled disabled and consumed as a single unit .
function DTraceConsumer()
{
	var dt = this;
	mod_events.EventEmitter.call(this);
	this.dt_status = 'uninit';
	this.dt = binding.init(function (err) {
		if (err) {
			dt.dt_status = 'error';
			dt.dt_error = err;
			dt.emit('error', err);
		} else {
			dt.dt_status = 'ready';
			dt.emit('ready');
		}
	});
	if (dtc_conf === undefined) {
		dtc_conf = {};
		binding.conf(function (name, value) {
			dtc_conf[name] = value;
		});
	}
}
function DTraceConsumer ( ) { var dt = this ; mod_events . EventEmitter . call ( this ) ; this . dt_status = 'uninit' ; this . dt = binding . init ( function ( err ) { if ( err ) { dt . dt_status = 'error' ; dt . dt_error = err ; dt . emit ( 'error' , err ) ; } else { dt . dt_status = 'ready' ; dt . emit ( 'ready' ) ; } } ) ; if ( dtc_conf === undefined ) { dtc_conf = { } ; binding . conf ( function ( name , value ) { dtc_conf [ name ] = value ; } ) ; } }
Each DTraceConsumer encapsulates a single DTrace enabling -- what normally
 corresponds to an invocation of the dtrace(1M) command.
Each DTraceConsumer encapsulates a single DTrace enabling -- what normally corresponds to an invocation of the dtrace ( 1M ) command .