[roll] Roll fuchsia [diagnostics][sampler] Better keys for cached values

To send event-count diffs to Cobalt we need to remember previous
values. Currently these are keyed by the Diagnostics hierarchy path that
selected them. But it can happen that multiple Diagnostics files (payloads)
are returned for a single component, and a selector can match a value from
each.

To avoid name collisions, we'll build the metric_cache key from the
metadata.filename as well as the selector string.

This CL refactors ProjectSampler to make it more unit-testable.

Original-Fixed: 90216
Test: $ fx test //src/diagnostics/sampler
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/617705
Original-Revision: 7d2becbc476804b973e095c1bcb2ff32d4051f02
GitOrigin-RevId: 0cb04eae8bf111041ce59f910352d2a76957984b
Change-Id: Icda4474e941f260757c6446ef8c2924b6a73f3c8
1 file changed
tree: 444e31ed23c92f6647f94f2ce74f483985f8fdf4
  1. infra/
  2. third_party/
  3. cts
  4. firmware
  5. flower
  6. jiri.lock
  7. minimal
  8. prebuilts
  9. README.md
  10. stem
  11. test_durations
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance via the IRC channel #fuchsia on Freenode.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.