Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 7a0be13b authored by Pablo Gamito's avatar Pablo Gamito
Browse files

Implement ProtoLog service

This service is used to:
- Handle ProtoLog commands and forward the relevant commands to client
  processes.
- Handle ProtoLog viewer config dumping to the Perfetto trace. Since
  many client processes might be running the same code with the same
  viewer config we want to centralize this to ensure we only dump these
  configurations once and not once for every single processes. This also
  allows us to dump the viewer config on the Perfetto trace flush which
  is not guaranteed in all client processes which may be frozen until
  system server.

Each process tracing to ProtoLog will register itself with this service
to be managed appropriately. Each process will still be reponsible for
doing their own tracing directly to the Perfetto shared memory buffer.

Test: atest com.android.internal.protolog.ProtoLogServiceTest
Flag: android.tracing.client_side_proto_logging
Bug: 352538294
Change-Id: Ic2a44f813ebcb2039109d9e7c4d2f77e33172ed8
parent 2ebdcb45
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment