Create and pass shared-histogram-allocator from browser to renderer.

After the renderer is started, a shared-memory segment
is created and sent to it; all renderer histograms
created after that point will be stored there.

The SubprocessMetricsProvider extracts that shared
segment on the browser side and, when metrics are being
uploaded, iterates through all the histograms stored
there.

When the renderer exits, the SMP will continue to hold
a handle to the memory segment.  Once all the histograms
are uploaded (during the next cycle), it will finally
release the memory back to the operating system.

BUG=546019

Review URL: https://codereview.chromium.org/1671933002

Cr-Commit-Position: refs/heads/master@{#385873}


CrOS-Libchrome-Original-Commit: df016a7ce60decb9174ab2201bf4864fc7cefa82
1 file changed
tree: c690f05588ff298a5f029eb06c9a6311e1890766
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/