DescriptionAdd experiment to exercise AffiliationService with dummy data, plus add related UMA histograms.
Add support for an experiment where affiliation information is prefetched for a set of dummy Android facet URIs on start-up. Then, first shortly after start-up, and then periodically once an hour, the AffiliationService is queried for affiliations of a set of related dummy Web facet URIs. It is expected that these requests can be answered from the cache. This allows testing the AffiliationService before it can be used with any real data.
Furthermore, add UMA histograms to measure some basic metrics in general and wrt. the experiment:
* AffiliationFetcher: Success/failure counts; and HTTP result and network error codes on failure.
* AffiliationBackend: The number of facets requested in a single network fetch; the time before the first network fetch and between subsequent network fetches, to give an insight into how well the fetch scheduling/throttling logic works.
* Experiment-specific: The number of times that affiliations for the dummy Web facets were successfully returned, and the number of results returned each time, to give an insight into how high the fill factor of data is in the cache.
BUG=478952
Committed: https://crrev.com/c096020684b111a8ba7cf94f549841afdb0c96d1
Cr-Commit-Position: refs/heads/master@{#326284}
Patch Set 1 #
Total comments: 18
Patch Set 2 : Addressed comments, more histograms, made everything just better. #Patch Set 3 : Fix timing. #
Total comments: 5
Patch Set 4 : Address optional nits. #
Total comments: 8
Patch Set 5 : Addressed comments from mkwst@. #Patch Set 6 : Comment phrasing. #Messages
Total messages: 18 (4 generated)
|