If you relly want to see this extension, consider sponsoring my projects.
From Chrome App Store or from the repository:
- chrome://extensions/
- Turn on "Developer mode" checkbox
- Click "Load unpacked extension..." button
- Select
setInterval-sniffer/chrome
folder
The sniffer monkey patch (extend without altering the original source code) setInterval method:
var originalSetInterval = window.setInterval;
window.setInterval = function(fn, time) {
var id = originalSetInterval(fn, time);
post({
functionName: 'setInterval',
fn: fn.toString(),
id: id,
time: time
});
return id;
};
- Don't stop sniffing on page reload
- Button to kill an interval in Timers panel
- Add stacktrace data using the technic from captureCalls.js
- Display setTimeout too, visually separate them from setInterval
- Make it prettier