Firebug profiling issue: "no activity to profile"
Posted
by thermal7
on Stack Overflow
See other posts from Stack Overflow
or by thermal7
Published on 2010-04-22T12:25:25Z
Indexed on
2010/04/22
12:43 UTC
Read the original article
Hit count: 265
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?
© Stack Overflow or respective owner