-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove diagnostic logging from CachedResourceLoader
https://bugs.webkit.org/show_bug.cgi?id=264340 rdar://118061900 Reviewed by Chris Dumez. These loggings are no longer used. And it turned out that they are very costly when we are just hitting memory-cached resource path. We are sampling with 5%, which means we hit this every 20 image elements for example. This patch drops it from CachedResourceLoader. We should consider removing the other loggings too in the subsequent patch. * Source/WebCore/loader/cache/CachedResourceLoader.cpp: (WebCore::CachedResourceLoader::requestResource): (WebCore::CachedResourceLoader::determineRevalidationPolicy const): (WebCore::logMemoryCacheResourceRequest): Deleted. (WebCore::logRevalidation): Deleted. (WebCore::logResourceRevalidationDecision): Deleted. * Source/WebCore/page/DiagnosticLoggingKeys.cpp: (WebCore::DiagnosticLoggingKeys::noCacheKey): Deleted. (WebCore::DiagnosticLoggingKeys::noStoreKey): Deleted. (WebCore::DiagnosticLoggingKeys::notInMemoryCacheKey): Deleted. (WebCore::DiagnosticLoggingKeys::isExpiredKey): Deleted. (WebCore::DiagnosticLoggingKeys::inMemoryCacheKey): Deleted. (WebCore::DiagnosticLoggingKeys::reloadKey): Deleted. (WebCore::DiagnosticLoggingKeys::revalidatingKey): Deleted. (WebCore::DiagnosticLoggingKeys::unusedReasonCredentialSettingsKey): Deleted. (WebCore::DiagnosticLoggingKeys::unusedReasonErrorKey): Deleted. (WebCore::DiagnosticLoggingKeys::unusedReasonMustRevalidateNoValidatorKey): Deleted. (WebCore::DiagnosticLoggingKeys::unusedReasonNoStoreKey): Deleted. (WebCore::DiagnosticLoggingKeys::unusedReasonRedirectChainKey): Deleted. (WebCore::DiagnosticLoggingKeys::unusedReasonReloadKey): Deleted. (WebCore::DiagnosticLoggingKeys::unusedReasonTypeMismatchKey): Deleted. * Source/WebCore/page/DiagnosticLoggingKeys.h: Canonical link: https://commits.webkit.org/270338@main
- Loading branch information
1 parent
347e859
commit c1ff317
Showing
3 changed files
with
1 addition
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters