[roll] Roll fuchsia [sag] Use internal buffer for SAG event logging

SAG currently logs suspend events to an Inspect ring buffer as they
occur. Prior to fxr/1553308, the 8192-event buffer combined witih a
large per-event size meant it was possible to exhaust the heap allocated
by Inspect and data from some events would get dropped. A temporary fix
was introduced to limit the buffer size at the cost of losing some event
history.

This change moves the event logging from an Inspect ring buffer to a
internal (within SAG) buffer. Events are then logged to Inspect
dynamically (as a lazy node), which effectively zeroes out Inspect heap
usage; however, this change also causes the component memory footprint
to grow to accommodate the internal ring buffer.

Changes:
- Implements internal_event_log, an internal ring buffer for suspend
  event logging
- Converts Inspect logging from a ring buffer to a lazy node
  - Suspend events are converted dynamically into inspect nodes,
    minimizing Inspect heap memory usage

Original-Bug: b/492579895
Test: fx test system-activity-governor-test

Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1559997
Original-Revision: a36992fb27875f81553b0a27a8f0f4291cae3786
GitOrigin-RevId: ee85f16ee3b8d58ae1487ae25e086168662ba559
Change-Id: I40fde415c9352acc18fc872875ed900512d33670
1 file changed
tree: 7fd7750506b2933976eb6a595a637344dcef363f
  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.