UNPKG

jstrace

Version:

dynamic tracing written in javascript (similar to dtrace/ktap etc)

19 lines (16 loc) 321 B
exports.remote = function(traces){ // console.* calls relay to the local client var id = setInterval(function(){ console.dir({ user: { name: { first: 'tobi', last: 'ferret' } } }); }, 250); traces.on('cleanup', function(){ clearInterval(id); }); };