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