Create StatsBootstrapAtomService
Design doc is at go/statsd-bootstrap-logging. Creates a proxy service for logging atoms from bootstrap processes to statsd. Service has one API, which converts StatsBootstrapAtom into StatsEvent and logs to statsd. This should only used by processes that start in the bootstrap namespace and cannot directly link statsd's libraries to log to statsd. Bug: 204889815 Test: booted, made sure binder service was published. Change-Id: I09709a30a42a7a398234c995324f62a0d62ad24f
This commit is contained in:
@@ -264,6 +264,8 @@ public final class SystemServer implements Dumpable {
|
||||
"com.android.server.stats.StatsCompanion$Lifecycle";
|
||||
private static final String STATS_PULL_ATOM_SERVICE_CLASS =
|
||||
"com.android.server.stats.pull.StatsPullAtomService";
|
||||
private static final String STATS_BOOTSTRAP_ATOM_SERVICE_LIFECYCLE_CLASS =
|
||||
"com.android.server.stats.bootstrap.StatsBootstrapAtomService$Lifecycle";
|
||||
private static final String USB_SERVICE_CLASS =
|
||||
"com.android.server.usb.UsbService$Lifecycle";
|
||||
private static final String MIDI_SERVICE_CLASS =
|
||||
@@ -2487,6 +2489,11 @@ public final class SystemServer implements Dumpable {
|
||||
mSystemServiceManager.startService(STATS_PULL_ATOM_SERVICE_CLASS);
|
||||
t.traceEnd();
|
||||
|
||||
// Log atoms to statsd from bootstrap processes.
|
||||
t.traceBegin("StatsBootstrapAtomService");
|
||||
mSystemServiceManager.startService(STATS_BOOTSTRAP_ATOM_SERVICE_LIFECYCLE_CLASS);
|
||||
t.traceEnd();
|
||||
|
||||
// Incidentd and dumpstated helper
|
||||
t.traceBegin("StartIncidentCompanionService");
|
||||
mSystemServiceManager.startService(IncidentCompanionService.class);
|
||||
|
||||
Reference in New Issue
Block a user