diff options
| author | 2024-07-11 16:14:14 +0000 | |
|---|---|---|
| committer | 2024-08-06 17:15:23 +0000 | |
| commit | 7a0be13b7ed09501fb19567c5b74c846547564a4 (patch) | |
| tree | 0f5666c81c190e9f2b95019cd69a64886e9a0612 /api/api_test.go | |
| parent | 2ebdcb45f63b29a48c47f9c9ae8d522a0fe4a7b1 (diff) | |
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
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions