Skip to content
Commit 65dcabbe authored by Mark Schillaci's avatar Mark Schillaci Committed by Chromium LUCI CQ
Browse files

Add histograms to track AccessibilityNodeInfo cache usage on Android

This CL adds two new UMA histograms to track usage statistics of the
Java-side AccessibilityNodeInfo cache on Android.

We add a histogram to track the maximum number of nodes that were ever
stored in the cache during a session (updated once per atomic update).
We also add a histogram to track the number of requests the Android
Framework makes for AccessibilityNodeInfo objects that are serviced
by our cache rather than being constructed from scratch.
We add a unit test to ensure tracking is happening.

This CL has no user-facing functional changes.

AX-Relnotes: N/A
Bug: 1300602
Change-Id: Iaab9f2c128d2b42696470d429c88b3b46c649d10
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3487954


Reviewed-by: default avatarAbigail Klein <abigailbklein@google.com>
Reviewed-by: default avatarEvan Liu <evliu@google.com>
Commit-Queue: Mark Schillaci <mschillaci@google.com>
Cr-Commit-Position: refs/heads/main@{#975190}
parent 413f1119
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