Chromium Code Reviews
DescriptionAdd histograms to ResourceFetcher to measure memory cache hit rate.
This will drive possible improvements that could be made in the cache to
decrease memory usage (at least on Android).
Note that the metrics are in the ResourceFetcher rather than in the MemoryCache
itself to only report events that really matter in practice (e.g. the resource
has to be fetched from the browser process vs. the resource was served directly
from the in-memory cache).
In addition to the overall hit rate, an important metric that this CL is adding
is whether a resource is live or dead upon a cache hit. This will help us
understand whether memory usage improvements can be made in the cache since
only dead resources can be evicted (live resources are used by clients thus
can't be deleted by definition).
BUG=290193
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157890
Patch Set 1 : #
Total comments: 15
Patch Set 2 : Address Adam's comments #Patch Set 3 : Fix clang build (by adding missing switch case) #
Total comments: 6
Patch Set 4 : Address Adam's comments #Messages
Total messages: 9 (0 generated)
|