Add android user list data source to Perfetto probes #3473
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This update adds a new data source,
android.user_list, to Perfetto. It parses the/data/system/users/user.listfile, which is generated byUserManagerService, on system update or on user data change to record necessary Android User information directly into Perfetto traces.The CL includes:
This change overcomes the current limitations in Perfetto traces, where only Android user ID (derived from process UID) is available, making it difficult to understand the impact of different user types on system performance. By adding a dedicated Multiuser data source, developers and performance analysts will be able to:
Bug: 391110239
Flag: android.multiuser.perfetto_multiuser_table
Test: tools/run_android_test out/default perfetto_unittests
Change-Id: I00d24cb92c11e5b2a5fbb0301787fa01ef3dd774