[roll] Roll fuchsia [inspect] Fix histogram index calculation

Update the histogram property implementations to use saturating
arithmetic when calculating bucket indices. Prevents overflows and
panics when inserted values or bucket ranges exceed numerical limits
(e.g. i64::MAX).

Add tests for edge cases, including min/max bounds and sparse
histograms, to ensure correct behavior at the limits.

Further improvements may be made in the future by validating parameters,
such as limiting step size to non-zero values.

Original-Fixed: 470168998
Test: diagnostics-persistence-unittests
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1492845
Original-Revision: b360a6a4c2f387c87a924b07d0c4bc000f1c46bc
GitOrigin-RevId: 12d894ba94fa07c7d3e80dfc5bf195c210a855ec
Change-Id: I18b6973c79659b0d0c0d52f6b3501e4d1c840a22
1 file changed
tree: 6150d5b35dc86544bbcbaed3e8c4b66e7786deeb
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cobalt
  6. flower
  7. jiri.lock
  8. MILESTONE
  9. minimal
  10. prebuilts
  11. README.md
  12. stem
  13. 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 in one of the communication channels documented at get involved.

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.