[WK2] Log total number of network cache queries using diagnostic logging
[WebKit-https.git] / Source / WebKit2 / NetworkProcess / cache / NetworkCacheStatisticsCocoa.mm
index 74f6e8f..fe5c658 100644 (file)
@@ -178,6 +178,11 @@ void Statistics::shrinkIfNeeded()
     });
 }
 
+void Statistics::recordRetrievalRequest(uint64_t webPageID)
+{
+    NetworkProcess::singleton().logDiagnosticMessage(webPageID, WebCore::DiagnosticLoggingKeys::networkCacheKey(), WebCore::DiagnosticLoggingKeys::retrievalRequestKey(), WebCore::ShouldSample::Yes);
+}
+
 void Statistics::recordNotCachingResponse(const Key& key, StoreDecision storeDecision)
 {
     ASSERT(storeDecision != StoreDecision::Yes);