Closed
Bug 347888
Opened 18 years ago
Closed 18 years ago
profiler does not "guess" at function names without help from the user (loading the source yourself)
Categories
(Other Applications Graveyard :: Venkman JS Debugger, enhancement)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: apeller, Assigned: Gijs)
References
Details
Attachments
(1 file)
6.98 KB,
patch
|
bugzilla-mozilla-20000923
:
review+
|
Details | Diff | Splinter Review |
In the profiler, try profiling a page like http://archive.dojotoolkit.org/nightly/tests/widget/test_DatePicker.html or any Dojo page, and save the report. You'll see that it has lots of anonymous functions in the report. Dojo uses this construct for almost all of its code: dojo.foo = function() { ... } so almost everything you profile shows up as anonymous. It would be too expensive to try to "guess" the function names during profiling, as Venkman does in the debugger, but perhaps these references could be "fixed up" after the profile is finished for the functions in the report?
Comment 1•18 years ago
|
||
If you load the source of the file in question in Venkman (by double clicking on it in the Loaded Scripts view), then the name will show up in the profile report.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
Assignee | ||
Comment 2•18 years ago
|
||
We're aware of that, but we'd like to have the profiler do that by itself if the source hasn't been loaded. I've adjusted the summary slightly to make it slightly more clear. Would that be a valid enhancement request?
Severity: normal → enhancement
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Summary: profiler does not "guess" at function names → profiler does not "guess" at function names without help from the user (loading the source yourself)
Assignee | ||
Comment 3•18 years ago
|
||
Mini patch. This just bulk-loads everything it needs, and starts generating report when it's finished. This seems to cure as much as loading everything manually, though for big ajaxy stuff it takes a while - which is exactly why there's a pref for it (which is off by default!). I've made a small whitespace change I just noticed, apart from that I think everything in there is self-explanatory. r? from Silver. :-)
Attachment #232940 -
Flags: review?(silver)
Comment 4•18 years ago
|
||
Comment on attachment 232940 [details] [diff] [review] Patch /toggle-patch-review
Attachment #232940 -
Flags: review?(silver) → review+
Assignee | ||
Updated•18 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 18 years ago → 18 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Product: Other Applications → Other Applications Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•