Closed Bug 270298 Opened 21 years ago Closed 18 years ago

Profiler gives bad output (5000 - 0 ms) for things which take 0ms total

Categories

(Other Applications Graveyard :: Venkman JS Debugger, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: timeless, Assigned: rginda)

Details

Attachments

(2 files)

Steps: create a profile of something. stop, save the profile as html, examine the profile. Actual results will include something like: XStringBundle 5000 - 0 ms [ Previous File | Next File | Previous Range | Next Range ] 0 XStringBundle getString: 14-17, 33 call(s), 0ms total, 0ms min, 0ms max, 0ms avg 1 XStringBundle get_stringBundle: 32-46, 33 call(s), 0ms total, 0ms min, 0ms max, 0ms avg -- I'm not sure what the number is supposed to be, but i'm certain that the "5000 - 0 ms" bit is wrong. Expected results: unknown, probably 0 - 0 ms
Product: Core → Other Applications
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All
Hardware: PC → All
This actually fixes two related problems: - The ranges overlapped, because it picked range values N - 1 and N + 1. - When all the functions took 0ms, the range was completely wrong (this bug). With this patch, 0ms functions go into a group "0 - 0.25 ms" as (I believe) intended.
Assignee: rginda → silver
Status: NEW → ASSIGNED
Attachment #243177 - Flags: review?(rginda)
Attachment #243177 - Flags: review?(rginda) → review?(shaver)
Assignee: silver → rginda
Status: ASSIGNED → NEW
QA Contact: caillon → venkman
Comment on attachment 243177 [details] [diff] [review] Fix ranges in profiler output r=ajvincent, this fix seems safe.
Attachment #243177 - Flags: review?(shaver) → review+
Checking in mozilla/extensions/venkman/resources/content/venkman-profiler.js; /cvsroot/mozilla/extensions/venkman/resources/content/venkman-profiler.js,v <-- venkman-profiler.js new revision: 1.11; previous revision: 1.10 done
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Backed out on James' request.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Checked in.
Status: REOPENED → RESOLVED
Closed: 18 years ago18 years ago
Resolution: --- → FIXED
Product: Other Applications → Other Applications Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: