Based on xdazz's answer , I tried replacing two functions so that it worked on iOS without refactoring all timers:
if(!console){var console = {};} // for those without a console - mind the context console.timers = {}; console.time = function(timer) { if(!timer){timer="Timer";} console.timers[timer] = new Date().getTime(); }; console.timeEnd = function(timer) { if(!timer){timer="Timer";} console.log(timer+": "+(new Date().getTime()-console.timers[timer])); };
Warning : this will replace the original API and therefore may provide less accurate data on your desktop browsers.
source share