ohdear
Because black swans happen.
This is a very simple module to enable periodic heap dump generation and launching webkit development tools on application start.
Hooks are provided to start/stop webkit development tools programatically or to take heapdump snapshots on demand.
Examples
Default. Heapdump every hour, no debug agent
var feck = ; console
Change heapdump periodicity to every minute
var feck = dumpInterval: 60000; // 60000ms = 60s = 1m console
Debug. Heapdump every hour, activate debug agent on start
var feck = activateAgentOnStart: true; console
On demand heapdumps only with debug agent on start
var feck = dumpOnDemand: true activateAgentOnStart: true; console
Dump heap as you need
var feck = dumpOnDemand: true activateAgentOnStart: true; feck; // Whenever you want/need a heapdump console
On demand debug agent enable/disable
var feck = dumpOnDemand: true activateAgentOnStart: true; feck; // Activated -> Deactivatedfeck; // Deactivated -> Activated console
Is the debug agent running
var feck = ; feck; // false, unless activated on start option is provided as above
Log interactions
var feck = ; feck;feck;feck;