SystemTriggered Trace Scheduling
- Add scheduling logic backed by device config
- Add test for scheduling logic
Scheduling logic: schedule a system triggered trace to start at a random time between a device config min and max amount time. Default value is 24 hours +/- 6 hours (18-30 hours).
New DeviceConfig backed variables are locked and atomic as they can be updated on a different thread than where they are set.
Test: run new test
Bug: 373461116
Flag: android.os.profiling.system_triggered_profiling_new
Change-Id: I548488b5a9da960f72829ef666c077a97d42b76c
3 files changed