Closed Bug 28842 Opened 25 years ago Closed 25 years ago

instrument nsString allocation/copy code to find degenerate users

Categories

(Core :: XPCOM, defect, P3)

defect

Tracking

()

VERIFIED DUPLICATE of bug 28221

People

(Reporter: waterson, Assigned: waterson)

Details

(Keywords: perf)

Use XPCOM stack walking code to instrument nsString::Append(), 
nsString::Insert() et al. to identify places that lead to degenerate use of 
nsString. By "degenerate", I mean code that causes excessive allocation or bulk 
moving of memory.
Keywords: perf
From my comment on the related bug

  <http://bugzilla.mozilla.org/show_bug.cgi?id=28841>

"A good measure might be to add (for profiling only, of course) a time field to 
the string structure, and log how _long_ a string exists at a certain size.  That 
way we could tell the difference [e.g.] between having lots of empty strings and 
having lots of strings that just happen to start empty but don't really spend 
much time in that state."
This data will also help me do the right thing on Bug 26435.
Target Milestone: M15
this work is being done under bug 28221.

*** This bug has been marked as a duplicate of 28221 ***
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Marking Verified as a dup
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.