Open
Bug 827945
Opened 12 years ago
Updated 2 years ago
Add SAMPLE_LABEL's in text layout code
Categories
(Core :: Layout: Text and Fonts, defect)
Core
Layout: Text and Fonts
Tracking
()
NEW
People
(Reporter: bjacob, Unassigned)
References
Details
Attachments
(1 file)
10.30 KB,
patch
|
Details | Diff | Splinter Review |
In bug 825622 we have profiles showing time spent in text layout code, but without more SAMPLE_LABEL's, it's hard to make precise sense of profiles. This patch allows to replace the mostly flat profile http://people.mozilla.com/~bgirard/cleopatra/#report=75848aa8ceae25cbd7e49ba1518793cdcc2156bb by the tree-view profile http://people.mozilla.com/~bgirard/cleopatra/#report=aaafd649dff13e7e1476991d0506cafe7e264258 . Who should review this? Defaulting to dbaron. Note: SAMPLE_LABEL has a cost, which is why I only put it in functions that looked expensive enough to offset that cost. Maybe BenWa can comment in more detail about that cost.
Attachment #699352 -
Flags: review?(dbaron)
Comment on attachment 699352 [details] [diff] [review] Add SAMPLE_LABEL's Transferring review to roc, who knows this code better (though he may wish to transfer it, or parts of it, further); I'm a little concerned about whether some of these SAMPLE_LABELs might be in functions that are too short... thus distorting the numbers.
Attachment #699352 -
Flags: review?(dbaron) → review?(roc)
Yeah, these feel too fine-grained ... but it's hard to say exactly what "too fine-grained" means. Do we have data to go by? Though I think, for main-thread-only labels like these, we could have a SAMPLE_LABEL_MAIN_THREAD that is very low overhead.
Attachment #699352 -
Flags: review?(roc)
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•