There is a --prof_lazy flag but it has been removed in newer versions
of io.js and node.js and it's unreliable in v0.10. I've submitted
patches in the past to upstream V8 to fix some of the issues but it
was basically unsalvageable.
My company has a product[0] that can intelligently enable and disable
the profiler and does a bunch of in-flight processing to keep the size
of the log file down (so you can keep it running for days without
bogging down the system or filling up the disks); some of that
functionality is integrated in our strong-agent product[1].
I'm not sure if other vendors provide something similar; I haven't
heard about it, at least.
[0]
https://strongloop.com/strongblog/node-js-performance-meteor/
[1]
https://npmjs.org/package/strong-agent