Merge "Register IonHeapSize puller only if supported" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
bb26e42b19
@@ -1468,6 +1468,9 @@ public class StatsPullAtomService extends SystemService {
|
||||
}
|
||||
|
||||
private void registerIonHeapSize() {
|
||||
if (!new File("/sys/kernel/ion/total_heaps_kb").exists()) {
|
||||
return;
|
||||
}
|
||||
int tagId = FrameworkStatsLog.ION_HEAP_SIZE;
|
||||
mStatsManager.registerPullAtomCallback(
|
||||
tagId,
|
||||
|
||||
Reference in New Issue
Block a user