Refactor Traceur for extensibility
This change refactors the notification code in TraceService and the
Perfetto config creation in PerfettoUtils so that it will be more
straightforward to add stack sampling to Traceur.
Test: - Check that traces are still collected as expected, and that
their configs (with all tags enabled) match the configs of
traces taken before this change.
- Check that traces opened in the Perfetto UI don't report any
unexpected errors.
- Check that notifications still work as expected.
Bug: 265048436
Change-Id: I072bd8d6cc4ff0664e22a7b8634242d89522168a
2 files changed