Enhance battery usage refresh content log for performance testing
Fixes: 194021631
Test: make SettingsRoboTests
Change-Id: If013befb7a9aaf590762cec10035269e66588ab7
(cherry picked from commit 8c4f097592
)
This commit is contained in:
@@ -332,9 +332,12 @@ public class BatteryChartPreferenceController extends AbstractPreferenceControll
|
|||||||
|
|
||||||
mTrapezoidIndex = trapezoidIndex;
|
mTrapezoidIndex = trapezoidIndex;
|
||||||
mHandler.post(() -> {
|
mHandler.post(() -> {
|
||||||
|
final long start = System.currentTimeMillis();
|
||||||
removeAndCacheAllPrefs();
|
removeAndCacheAllPrefs();
|
||||||
addAllPreferences();
|
addAllPreferences();
|
||||||
refreshCategoryTitle();
|
refreshCategoryTitle();
|
||||||
|
Log.d(TAG, String.format("refreshUi is finished in %d/ms",
|
||||||
|
(System.currentTimeMillis() - start)));
|
||||||
});
|
});
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user