Changeset 181702 in webkit
- Timestamp:
- Mar 18, 2015, 10:50:52 AM (11 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/page/DiagnosticLoggingKeys.cpp (modified) (2 diffs)
-
WebCore/page/DiagnosticLoggingKeys.h (modified) (2 diffs)
-
WebKit2/ChangeLog (modified) (1 diff)
-
WebKit2/NetworkProcess/cache/NetworkCacheStatisticsCocoa.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r181699 r181702 1 2015-03-18 Chris Dumez <cdumez@apple.com> 2 3 [WK2] Log the number of network cache requests that we have never seen before 4 https://bugs.webkit.org/show_bug.cgi?id=142828 5 <rdar://problem/19632130> 6 7 Reviewed by Antti Koivisto. 8 9 Add diagnostic logging key for network cache efficacy logging. 10 11 * page/DiagnosticLoggingKeys.cpp: 12 (WebCore::DiagnosticLoggingKeys::neverSeenBeforeKey): 13 (WebCore::DiagnosticLoggingKeys::requestKey): 14 * page/DiagnosticLoggingKeys.h: 15 1 16 2015-03-18 Yusuke Suzuki <utatane.tea@gmail.com> 2 17 -
trunk/Source/WebCore/page/DiagnosticLoggingKeys.cpp
r181689 r181702 119 119 } 120 120 121 String DiagnosticLoggingKeys::neverSeenBeforeKey() 122 { 123 return ASCIILiteral("neverSeenBefore"); 124 } 125 121 126 String DiagnosticLoggingKeys::noCacheKey() 122 127 { … … 314 319 } 315 320 321 String DiagnosticLoggingKeys::requestKey() 322 { 323 return ASCIILiteral("request"); 324 } 325 316 326 String DiagnosticLoggingKeys::retrievalRequestKey() 317 327 { -
trunk/Source/WebCore/page/DiagnosticLoggingKeys.h
r181689 r181702 70 70 WEBCORE_EXPORT static String networkCacheKey(); 71 71 static String networkKey(); 72 WEBCORE_EXPORT static String neverSeenBeforeKey(); 72 73 static String noCacheKey(); 73 74 static String noCurrentHistoryItemKey(); … … 96 97 static String reloadFromOriginKey(); 97 98 static String reloadKey(); 99 WEBCORE_EXPORT static String requestKey(); 98 100 static String resourceKey(); 99 101 static String resourceRequestKey(); -
trunk/Source/WebKit2/ChangeLog
r181700 r181702 1 2015-03-18 Chris Dumez <cdumez@apple.com> 2 3 [WK2] Log the number of network cache requests that we have never seen before 4 https://bugs.webkit.org/show_bug.cgi?id=142828 5 <rdar://problem/19632130> 6 7 Reviewed by Antti Koivisto. 8 9 Log the number of network cache requests that we have never seen before 10 using diagnostic logging. 11 12 * NetworkProcess/cache/NetworkCacheStatisticsCocoa.mm: 13 (WebKit::NetworkCache::Statistics::recordNotUsingCacheForRequest): 14 (WebKit::NetworkCache::Statistics::recordRetrievalFailure): 15 1 16 2015-03-17 Antti Koivisto <antti@apple.com> 2 17 -
trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheStatisticsCocoa.mm
r181689 r181702 220 220 LOG(NetworkCache, "(NetworkProcess) webPageID %llu: %s was previously requested but we are not using the cache, reason: %s", webPageID, requestURL.string().ascii().data(), diagnosticKey.utf8().data()); 221 221 NetworkProcess::singleton().logDiagnosticMessageWithValue(webPageID, WebCore::DiagnosticLoggingKeys::networkCacheKey(), WebCore::DiagnosticLoggingKeys::unusedKey(), diagnosticKey, WebCore::ShouldSample::Yes); 222 } else 222 } else { 223 NetworkProcess::singleton().logDiagnosticMessageWithValue(webPageID, WebCore::DiagnosticLoggingKeys::networkCacheKey(), WebCore::DiagnosticLoggingKeys::requestKey(), WebCore::DiagnosticLoggingKeys::neverSeenBeforeKey(), WebCore::ShouldSample::Yes); 223 224 markAsRequested(hash); 225 } 224 226 }); 225 227 } … … 254 256 LOG(NetworkCache, "(NetworkProcess) webPageID %llu: %s was previously request but is not in the cache, reason: %s", webPageID, requestURL.string().ascii().data(), diagnosticKey.utf8().data()); 255 257 NetworkProcess::singleton().logDiagnosticMessageWithValue(webPageID, WebCore::DiagnosticLoggingKeys::networkCacheKey(), WebCore::DiagnosticLoggingKeys::notInCacheKey(), diagnosticKey, WebCore::ShouldSample::Yes); 256 } else 258 } else { 259 NetworkProcess::singleton().logDiagnosticMessageWithValue(webPageID, WebCore::DiagnosticLoggingKeys::networkCacheKey(), WebCore::DiagnosticLoggingKeys::requestKey(), WebCore::DiagnosticLoggingKeys::neverSeenBeforeKey(), WebCore::ShouldSample::Yes); 257 260 markAsRequested(hash); 261 } 258 262 }); 259 263 }
Note:
See TracChangeset
for help on using the changeset viewer.