Manage time_in_state tracking from one place
Move functionality related to CPU time_in_state tracking to the KernelCpuBpfTracking class: - when to attach the eBPF program to start tracking - provide available CPU frequencies - provide CPU cluster (policy) information - unify the interface of KernelCpuTotalBpfMapReader with other readers This removes the dependency on the power profile when reading the information about available frequencies and clusters. It also reduces the code duplication for transforming that information in StatsPullAtomService. Bug: 179485697 Test: existing tests pass Test: atest CpuStatsTests Test: cmd stats pull-source 10010 Test: cmd stats pull-source 10095 Test: cmd stats pull-source 10096 Test: cmd stats pull-source 10098 Test: atest FrameworksCoreTests Change-Id: I17041014343da167b8bdf027ad83887e78ba5c2d
Loading
Please register or sign in to comment