Firebug profiling issue: "no activity to profile"
- by thermal7
I want to try some different options with some javascript (jQuery) to see which is the fastest, however I can't get profiling working properly. Here is the code I want to test.
$this.keypress(function(e) {
console.profile("test");
//retrieve the charcode if possible, otherwise get the keycode
k = e.which ? e.which : e.CharCode;
if (blockKeyCodes.indexOf("|" + k + "|") != -1 || e.ctrlKey && k == 86)
e.preventDefault();
console.profileEnd();
});
However, when I run this the console states "no activity to profile". If I use console.time the result is 0ms.
Anyone know how to fix this?