Bug 92032

Summary: Report the extra memory used by immutable StylePropertySet objects.
Product: WebKit Reporter: Andreas Kling <kling>
Component: Web Inspector (Deprecated)Assignee: Andreas Kling <kling>
Status: RESOLVED FIXED    
Severity: Normal CC: cmarcelo, macpherson, menard, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Andreas Kling
Reported 2012-07-23 14:49:09 PDT
If StylePropertySet::m_isMutable is false, the object is actually larger than sizeof(StylePropertySet) - it's sizeof(StylePropertySet) + m_arraySize * sizeof(CSSProperty). We should include this in reportMemoryUsage() to get more accurate numbers in the Inspector.
Attachments
Patch (3.28 KB, patch)
2012-07-23 14:55 PDT, Andreas Kling
no flags
Andreas Kling
Comment 1 2012-07-23 14:55:26 PDT
Andreas Kling
Comment 2 2012-07-23 15:56:56 PDT
Comment on attachment 153869 [details] Patch Clearing flags on attachment: 153869 Committed r123396: <http://trac.webkit.org/changeset/123396>
Andreas Kling
Comment 3 2012-07-23 15:57:02 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.