I have a script that is mostly callbacks for network events. The callbacks finish very quickly. In contrast, the script takes a relatively long time to initialize. I don't really care how long it takes to initialize, I just want to optimize the event callbacks. If I run node --prof, most of the results are from the initialization.
How can I make Node not record anything until it's done initializing? In other words, how can I programmatically enable and disable profiling?
from Make `node --prof` wait a bit before recording anything?
No comments:
Post a Comment