Enhance PropertyInvalidatedCache debug
Bug: 159039903 A set of small changes to the class to allow for addition debugging. 1. Distinguish a cache that is disabled because the nonce has not set from a cache that is disabled because it is corked. 2. Count the times the cache was bypassed because it was corked, unset, or disabled. This does not count the times the cache was bypassed because it was locally disabled. Add these counts to dumpsys. 3. Count the number of times a cache is invalidated, corked, and recorked (corked while already corked). Add these counts to dumpsys. 4. Log some additional information if cache inconsistency is detected. 5. Record cache overflows and cache high-water marks. Test: Run the following tests with and without the changes. Verify that the changes do not affect behavior. * CtsContactsProviderTestCases * FrameworksServicesTests * FrameworksServicesTests:UserManagerServiceCreateProfileTest * PlatformScenarioTests * PtsChreTestCases * FrameworksServicesTests:UserManagerServiceUserInfoTest * FrameworksServicesTests:UserManagerServiceIdRecyclingTest * CtsProviderTestCases * FrameworksServicesTests:UserSystemPackageInstallerTest * FrameworksServicesTests:PackageManagerSettingsTests * FrameworksServicesTests:UserLifecycleTests * CtsCalendarProviderTestCases * BluetoothInstrumentationTests Pull a bug report and verify that the new counters are included. Change-Id: I38d5545947d6f09c7e62e094c7b2858aab4a8cf9
Loading
Please register or sign in to comment