OSDN Git Service

Add statsd atom PROCESS_START_TIME
authorHui Yu <huiyu@google.com>
Fri, 11 Jan 2019 01:11:34 +0000 (17:11 -0800)
committerHui Yu <huiyu@google.com>
Thu, 31 Jan 2019 21:15:48 +0000 (13:15 -0800)
commit885aca1bbaa076b11914b9e4cb0d2a6d0c6fab3a
treed0716cf34b06b341ddd1706ed73048e2045ad9e2
parentfcd2ab1b0265f4eb2a25ad15d940e532c363cb57
Add statsd atom PROCESS_START_TIME

The definition of app process start time is from the app
launch time to the time that Zygote finished fork the app process and
loaded the application package's java classes.

The app process can be started for any component including  activity,
service, content provider, broadcast receiver or other, either in
foreground or background.

The difference of this atom from existing atom like AppStartOccured
is that this atom can report start time for both foreground and
background process.

Bug: 122356380
Test: NA.
Change-Id: Ifcc0c80f1da45c2ff89f7c88da6407ba777473e2
cmds/statsd/src/atoms.proto
services/core/java/com/android/server/am/ActivityManagerService.java