Dump jank tag to event log

Allows us to detect specificities of different scenarios better in FaaS

Bug: 271071509

Test: atest FlickerLibTest
Change-Id: Ida39a42ca4003092583b154c4ed3287c929f66b4
This commit is contained in:
Pablo Gamito
2023-02-28 09:51:43 +00:00
parent 78ece1c634
commit eda59488f1
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
option java_package com.android.internal.jank;
# Marks a request to start tracing a CUJ. Doesn't mean the request was executed.
37001 jank_cuj_events_begin_request (CUJ Type|1|5),(Unix Time Ns|2|3),(Elapsed Time Ns|2|3),(Uptime Ns|2|3)
37001 jank_cuj_events_begin_request (CUJ Type|1|5),(Unix Time Ns|2|3),(Elapsed Time Ns|2|3),(Uptime Ns|2|3),(Tag|3)
# Marks a request to end tracing a CUJ. Doesn't mean the request was executed.
37002 jank_cuj_events_end_request (CUJ Type|1|5),(Unix Time Ns|2|3),(Elapsed Time Ns|2|3),(Uptime Time Ns|2|3)
# Marks a request to cancel tracing a CUJ. Doesn't mean the request was executed.

View File

@@ -581,7 +581,7 @@ public class InteractionJankMonitor {
final Configuration config = builder.build();
postEventLogToWorkerThread((unixNanos, elapsedNanos, realtimeNanos) -> {
EventLogTags.writeJankCujEventsBeginRequest(
config.mCujType, unixNanos, elapsedNanos, realtimeNanos);
config.mCujType, unixNanos, elapsedNanos, realtimeNanos, config.mTag);
});
final TrackerResult result = new TrackerResult();
final boolean success = config.getHandler().runWithScissors(