WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
27304
WebKit should provide usage and eligibility information about the page cache
https://bugs.webkit.org/show_bug.cgi?id=27304
Summary
WebKit should provide usage and eligibility information about the page cache
Brady Eidson
Reported
2009-07-15 09:31:24 PDT
WebKit should provide usage and eligibility information about the page cache. This will help a client provide a debug window into the page cache to spot common disqualifiers.
Attachments
Patch
(11.60 KB, patch)
2009-07-15 09:35 PDT
,
Brady Eidson
mitz: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Brady Eidson
Comment 1
2009-07-15 09:35:05 PDT
Created
attachment 32791
[details]
Patch
mitz
Comment 2
2009-07-15 09:46:05 PDT
Comment on
attachment 32791
[details]
Patch
> + (WebCore::CachedFrame::childFrameCount):
Since this is recursive, I think a better name would be descendantFrameCount. A function that returns 1 + number of descendants (i.e. total number of frames in the subtree) may be simpler (and easier to use in PageCache::frameCount!).
> + (+[WebCoreStatistics numberCachedPages]): > + (+[WebCoreStatistics numberCachedFrames]): > + (+[WebCoreStatistics numberAutoreleasedPages]):
I think either “numberOf*” or “*Count” would be better names.
> + * WebView/WebFrame.mm: > + (-[WebFrame _cacheabilityDictionary]): Returns a dictionary with all the data about > + why the frame is not cacheable.
What if the frame is cacheable?
> + FrameLoader* fl = _private->coreFrame->loader(); > + DocumentLoader* dl = fl->documentLoader();
Please use “frameLoader” and “documentLoader” as variable names.
mitz
Comment 3
2009-07-15 10:08:31 PDT
Comment on
attachment 32791
[details]
Patch r=me if you address the above comments
Brady Eidson
Comment 4
2009-07-15 10:32:52 PDT
Sending WebCore/ChangeLog Sending WebCore/WebCore.base.exp Sending WebCore/history/CachedFrame.cpp Sending WebCore/history/CachedFrame.h Sending WebCore/history/PageCache.cpp Sending WebCore/history/PageCache.h Sending WebKit/mac/ChangeLog Sending WebKit/mac/Misc/WebCoreStatistics.h Sending WebKit/mac/Misc/WebCoreStatistics.mm Sending WebKit/mac/WebKit.exp Sending WebKit/mac/WebView/WebFrame.mm Sending WebKit/mac/WebView/WebFramePrivate.h Transmitting file data ............ Committed revision 45923.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug