RESOLVED FIXED 85226
Add a histogram for rendertree size
https://bugs.webkit.org/show_bug.cgi?id=85226
Summary Add a histogram for rendertree size
Ojan Vafai
Reported 2012-04-30 13:39:34 PDT
Add a histogram for rendertree size
Attachments
Patch (7.20 KB, patch)
2012-04-30 13:43 PDT, Ojan Vafai
no flags
Fix mac build (7.82 KB, patch)
2012-04-30 14:29 PDT, Ojan Vafai
no flags
Ojan Vafai
Comment 1 2012-04-30 13:43:00 PDT
Build Bot
Comment 2 2012-04-30 14:05:55 PDT
Ojan Vafai
Comment 3 2012-04-30 14:29:05 PDT
Created attachment 139518 [details] Fix mac build
Eric Seidel (no email)
Comment 4 2012-05-02 14:40:58 PDT
Comment on attachment 139518 [details] Fix mac build View in context: https://bugs.webkit.org/attachment.cgi?id=139518&action=review > Source/WebCore/page/Page.cpp:212 > +size_t Page::renderTreeSize() const A page may have many frames with distinct render trees. I'm not sure you mean to name it this way. > Source/WebCore/page/Page.cpp:217 > + size += frame->document()->renderArena()->totalRenderArenaSize(); is totalArenaSize accurate for your needs? Does it sum up all the object sizes? Does it include free space? Do you want it to?
Ojan Vafai
Comment 5 2012-05-02 14:47:25 PDT
Comment on attachment 139518 [details] Fix mac build View in context: https://bugs.webkit.org/attachment.cgi?id=139518&action=review >> Source/WebCore/page/Page.cpp:212 >> +size_t Page::renderTreeSize() const > > A page may have many frames with distinct render trees. I'm not sure you mean to name it this way. Do you have a suggestion? Not sure what's wrong with this name. This is the sum of the render tree sizes of all the frames in the page. I was just reusing the name from the WebKit2 code. >> Source/WebCore/page/Page.cpp:217 >> + size += frame->document()->renderArena()->totalRenderArenaSize(); > > is totalArenaSize accurate for your needs? Does it sum up all the object sizes? Does it include free space? Do you want it to? I have a followup patch that also gathers the total allocated bytes (i.e. includes the free space). I think, for the purposes of histograms, we want both numbers.
Eric Seidel (no email)
Comment 6 2012-05-02 17:38:32 PDT
Comment on attachment 139518 [details] Fix mac build OK.
WebKit Review Bot
Comment 7 2012-05-02 18:23:58 PDT
Comment on attachment 139518 [details] Fix mac build Clearing flags on attachment: 139518 Committed r115924: <http://trac.webkit.org/changeset/115924>
WebKit Review Bot
Comment 8 2012-05-02 18:24:03 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.