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)
Core
XPCOM
Tracking
()
M15
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.
Comment 1•25 years ago
|
||
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."
Assignee | ||
Updated•25 years ago
|
Target Milestone: M15
Assignee | ||
Comment 3•25 years ago
|
||
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
You need to log in
before you can comment on or make changes to this bug.
Description
•