issue #90: changing DTrace switchrate broke -p

This commit is contained in:
Bryan Cantrill 2013-05-21 17:25:41 -07:00
parent 45dce561ec
commit 5dd82cb817

View file

@ -1119,8 +1119,8 @@ function processPids(opts, stylize, callback) {
opts.level); opts.level);
return drainStdoutAndExit(1); return drainStdoutAndExit(1);
}).join(','); }).join(',');
var argv = ['dtrace', '-Z', '-x', 'strsize=4k', '-qn', var argv = ['dtrace', '-Z', '-x', 'strsize=4k',
'-x', 'switchrate=10hz', '-x', 'switchrate=10hz', '-qn',
format('%s{printf("%s", copyinstr(arg0))}', probes)]; format('%s{printf("%s", copyinstr(arg0))}', probes)];
//console.log('dtrace argv: %s', argv); //console.log('dtrace argv: %s', argv);
var dtrace = spawn(argv[0], argv.slice(1), var dtrace = spawn(argv[0], argv.slice(1),