WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
141803
[WK2] Add more detailed diagnostic logging for measuring network cache efficacy
https://bugs.webkit.org/show_bug.cgi?id=141803
Summary
[WK2] Add more detailed diagnostic logging for measuring network cache efficacy
Chris Dumez
Reported
2015-02-19 12:12:16 PST
Add more detailed diagnostic logging for measuring network cache efficacy. We want to know the reason the network cache is being by-passed, why the network cache decided not to cache a response and why it cannot reuse a cache entry. Radar: <
rdar://problem/19632080
>
Attachments
Patch
(31.74 KB, patch)
2015-02-19 12:30 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(33.47 KB, patch)
2015-02-20 13:24 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2015-02-19 12:30:11 PST
Created
attachment 246907
[details]
Patch
Antti Koivisto
Comment 2
2015-02-20 11:05:40 PST
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.
Antti Koivisto
Comment 3
2015-02-20 11:34:10 PST
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.
Chris Dumez
Comment 4
2015-02-20 13:24:40 PST
Created
attachment 246993
[details]
Patch
Antti Koivisto
Comment 5
2015-02-20 13:40:36 PST
Comment on
attachment 246993
[details]
Patch r=me
WebKit Commit Bot
Comment 6
2015-02-20 14:26:04 PST
Comment on
attachment 246993
[details]
Patch Clearing flags on attachment: 246993 Committed
r180456
: <
http://trac.webkit.org/changeset/180456
>
WebKit Commit Bot
Comment 7
2015-02-20 14:26:09 PST
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.
Top of Page
Format For Printing
XML
Clone This Bug