Profiling scripts in HTML.

0 views
Skip to first unread message

sdesign

unread,
Jul 10, 2007, 2:36:11 PM7/10/07
to Firebug
while trying out firebug profiling, I noticed that it does'nt list
anonymous code blocks as below :

<html>
<body >
<script type="text/javascript">

(function foo() {
for(var i=0;i<5000;i+
+) {

var divA = document.createElement("div");

divA.innerHTML = "HELLO";

document.body.appendChild(divA);
})();
</script>
</body>
</html>

If I try to profile the above, there is not entry pertinent to "foo".

Can someone please help understand, why ? Are there ways (other
profilers/extensions) to make the above work ? Maybe these problems
have been hilited and discussed before. In that case, can someone
please point me to the resources to read ? Thanks.

Reply all
Reply to author
Forward
0 new messages