Closed Bug 132071 Opened 22 years ago Closed 18 years ago

enable jprof html output to handle templates

Categories

(Core :: General, enhancement)

x86
Linux
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.2beta

People

(Reporter: morrison, Assigned: dbaron)

References

Details

(Whiteboard: [patch])

Attachments

(1 file, 2 obsolete files)

The HTML report generated by the current version of leaky.cpp doesn't handle the
angle brackets of templates well.  They're not escaped, so they mostly disappear
in the browsed web pages.
Patch against a somewhat earlier version of leaky.cpp which replaces angle
brackets in generated html output with HTML codes.
*** Bug 132072 has been marked as a duplicate of this bug. ***
marking NEW (patch) and assigning to dbaron@fas.harvard.edu 
Assignee: asa → dbaron
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: patch, review
Summary: enable jprof html output to handle templates → enable jprof html output to handle templates
I'm wonder if we consider std::string portable enough to use in jprof...
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.0
Target Milestone: mozilla1.0 → mozilla1.1beta
Target Milestone: mozilla1.1beta → mozilla1.2alpha
Whiteboard: [patch]
Target Milestone: mozilla1.2alpha → mozilla1.2beta
Blocks: 134016
Product: Browser → Seamonkey
Product: Mozilla Application Suite → Core
QA Contact: doronr → general
Attachment #75592 - Flags: review?(dbaron)
Comment on attachment 75592 [details] [diff] [review]
A version which avoids std::string - just ol' fashioned C strings

>+char *
>+htmlify(char *in)

The indentation in this function is really wacky -- way off house style, and internally inconsistent (sometimes one space instead of two).

>-    
>-    sp->cntP.printReport(fp, this);

I don't think this should be removed.  Any idea why it was removed?

Other than that, it looks fine.  Not sure if it still applies, though.

Sorry I missed this one.
Attached patch revised patchSplinter Review
This takes into account my comments on the previous patch (although some of the comments about indentation were actually about tabs).

It also fixes a few things in htmlify:
 * uses |const char| where we should (and reuses p in the counting loop where you were using q)
 * null-terminates the result
Attachment #75007 - Attachment is obsolete: true
Attachment #75592 - Attachment is obsolete: true
Attachment #249517 - Flags: review+
Attachment #75592 - Flags: review?(dbaron)
Checked in the above patch to trunk.

Thanks for contributing it, and sorry I lost track of it.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: