You need to sign in or sign up before continuing.
Procstats: keep track of per-proc state active time
Associations now keep track of how long the association was active for each process state that is seen in that association. This allows to better correlate how associations are keeping the overall process in RAM. Also do some cleanup of the dump output in various places to make it more consistent. For example, here is what we can now see about the contacts provider: Per-Package Stats: * com.android.providers.contacts / u0a13 / v28: Process android.process.acore (multi, 16 entries): SOff/Norm/ Imp Fg: +6s770ms Imp Bg: +2s970ms Service: +58ms Receiver: +241ms (Last Act): +2m55s844ms (Cch Emty): +19m34s250ms Mod/(Last Act): +3s248ms Low/(Last Act): +4s585ms Crit/ Imp Fg: +1s273ms (Last Act): +114ms SOn/Norm/ Top: +8m5s440ms Imp Fg: +5s399ms Imp Bg: +7s890ms Service: +347ms (Last Act): +12m28s564ms (Cch Emty): +45s874ms TOTAL : +44m22s867ms PSS/USS (4 entries): SOff/Norm/(Last Act): 1 samples 10MB 10MB 10MB / 8.9MB 8.9MB 8.9MB / 60MB 60MB 60MB (Cch Emty): 3 samples 8.2MB 9.2MB 11MB / 6.7MB 7.6MB 9.3MB / 6.7MB 24MB 57MB SOn/Norm/ Top: 4 samples 11MB 11MB 11MB / 9.8MB 9.8MB 9.8MB / 9.8MB 23MB 62MB (Last Act): 3 samples 12MB 13MB 13MB / 11MB 11MB 11MB / 11MB 29MB 64MB myID=d0cbaa1 mCommonProcess=8ceb4c6 mPackage=com.android.providers.contacts Common Proc: android.process.acore/10013 pkg=com.android.providers.contacts Association com.android.providers.contacts.CallLogProvider: Process: android.process.acore mNumActive=0 <- system / 1000: Total count 1: Duration +16ms / 0.00% Active count 1 (inline): Imp Fg: Duration +16ms / 0.00% TOTAL: Duration +16ms / 0.00% <- com.google.android.dialer / u0a40: Total count 4: Duration +428ms / 0.02% Active count 1 (inline): Receiver: Duration +428ms / 0.02% TOTAL: Duration +428ms / 0.02% <- com.google.android.as:nonpersistent / u0a48: Total count 8: Duration +287ms / 0.01% <- com.android.calllogbackup / u0a13: Total count 1: Duration +29ms / 0.00% Active count 1 (inline): Imp Bg: Duration +29ms / 0.00% TOTAL: Duration +29ms / 0.00% Association com.android.providers.contacts.VoicemailContentProvider: Process: android.process.acore mNumActive=0 <- com.google.android.dialer / u0a40: Total count 2: Duration +325ms / 0.01% Association com.android.providers.contacts.ContactsProvider2: Process: android.process.acore mNumActive=0 <- com.google.android.apps.messaging / u0a129: Total count 5: Duration +12m49s649ms / 27% Active count 1 (inline): Imp Bg: Duration +12m49s649ms / 27% TOTAL: Duration +12m49s649ms / 27% <- system / 1000: Total count 156: Duration +3s35ms / 0.11% Active count 2 (inline): Imp Fg: Duration +3s35ms / 0.11% TOTAL: Duration +3s35ms / 0.11% <- com.google.android.googlequicksearchbox:search / u0a62: Total count 2: Duration +582ms / 0.02% Active count 2 (inline): Imp Bg: Duration +582ms / 0.02% TOTAL: Duration +582ms / 0.02% <- com.google.android.gm / u0a83: Total count 3: Duration +97ms / 0.00% <- com.google.android.dialer / u0a40: Total count 3: Duration +21m31s285ms / 46% <- com.google.android.as:nonpersistent / u0a48: Total count 8: Duration +658ms / 0.02% <- com.google.android.contacts / u0a117: Total count 5: Duration +2s785ms / 0.10% Active count 3 (multi-field): Imp Bg: Duration +371ms / 0.01% Receiver: Duration +72ms / 0.00% TOTAL: Duration +443ms / 0.02% <- com.google.android.gms / u0a36: Total count 208: Duration +8s924ms / 0.31% Active count 50 (multi-field): Imp Fg: Duration +3s329ms / 0.12% Imp Bg: Duration +67ms / 0.00% Service: Duration +10ms / 0.00% TOTAL: Duration +3s406ms / 0.12% <- com.android.ims.rcsservice / 1001: Total count 4: Duration +387ms / 0.01% Active count 1 (inline): Imp Fg: Duration +387ms / 0.01% TOTAL: Duration +387ms / 0.01% <- com.android.bluetooth / 1002: Total count 5: Duration +714ms / 0.03% Active count 4 (inline): Imp Fg: Duration +714ms / 0.03% TOTAL: Duration +714ms / 0.03% <- com.google.process.gapps / u0a75: Total count 4: Duration +3m9s609ms / 6.7% Active count 16 (inline): Imp Bg: Duration +3m9s609ms / 6.7% TOTAL: Duration +3m9s609ms / 6.7% Bug: 110957691 Test: manual Change-Id: I71bc15dbcc19da81157778e0ce1a91a848b59a04
Loading
Please register or sign in to comment