Merge pull request #91 from bcantrill/master

issue #90: changing DTrace switchrate broke -p
This commit is contained in:
Trent Mick 2013-05-21 17:28:40 -07:00
commit 07c14fc8d0

View file

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