| Summary: | [WK2] Add more detailed diagnostic logging for measuring network cache efficacy | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||||
| Component: | WebKit2 | Assignee: | Chris Dumez <cdumez> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | barraclough, commit-queue, koivisto | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Chris Dumez
2015-02-19 12:12:16 PST
Created attachment 246907 [details]
Patch
Comment on attachment 246907 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=246907&action=review > Source/WebKit2/NetworkProcess/cache/NetworkCache.cpp:202 > +static bool canRetrieve(const WebCore::ResourceRequest& request, CacheBypassReason& reason) Having both the bool return and the reason seems redundant. Why not just make this return a singe RetrieveDecision enum (or similar) that covers both the success and the failure cases? Same comment for canStore. Comment on attachment 246907 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=246907&action=review > Source/WebKit2/NetworkProcess/cache/NetworkCacheStatistics.h:63 > +enum class CacheBypassReason { > + None, > + NotHTTPFamily, > + UnsupportedHTTPMethod, > + IsConditionalRequest, > + IsReloadIgnoringCacheData > +}; > + > +enum class CacheStorageFailure { > + None, > + NotHTTPFamily, > + UnsupportedHTTPMethod, > + IsAttachment, > + CacheControlNoStore, > + UncacheableHTTPStatusCode > +}; > + > +enum class CachedEntryReuseFailure { > + None, > + VaryingHeaderMismatch, > + MissingValidatorFields, > + Other, > +}; I think these should then move to NetworkCache scope. Created attachment 246993 [details]
Patch
Comment on attachment 246993 [details]
Patch
r=me
Comment on attachment 246993 [details] Patch Clearing flags on attachment: 246993 Committed r180456: <http://trac.webkit.org/changeset/180456> All reviewed patches have been landed. Closing bug. |