Chromium Code Reviews
DescriptionReport downloaded resources at most once
Before, we were reporting used_resources and unused_resources. used_resources was reported only once when the resource is used but unused_resources was reported on every single prefetch session for as long as the resource was still unused.
This change removes unused_resources and adds downloaded resources (with URL parameter d), which reports the "cost" of a resource once. This allows to have a meaningful ratio of used_resources / downloaded_resources.
BUG=675732
Committed: https://crrev.com/02bf6c04e45ee64670eb9e6cd3a05c54d9a2eaa0
Cr-Commit-Position: refs/heads/master@{#440176}
Patch Set 1 #Patch Set 2 : Fix race condition in PrecacheFetcherTest due to MaybePost #
Total comments: 18
Patch Set 3 : Move logic to precache_database #Patch Set 4 : Removed easily outdated comment #Patch Set 5 : Removed superfluous test #
Total comments: 8
Patch Set 6 : Improved tests #Messages
Total messages: 27 (16 generated)
|