| commit | d02939ed819810adab301de111a8cdb26e89f974 | [log] [tgz] |
|---|---|---|
| author | Matt Buckley <mattbuckley@google.com> | Wed Mar 26 15:51:01 2025 -0700 |
| committer | Matt Buckley <mattbuckley@google.com> | Tue Apr 15 14:07:08 2025 -0700 |
| tree | 641ee11bb6759c53ae14051290bdce7662b646e8 | |
| parent | 25faa39d09ff9c29bf288354330a962e8413831b [diff] |
Cap the maximum message queue size for reportActualWorkDuration Currently, the queue size is only cleared when it gets sent, so if a client calls the API fast enough it can overwhelm the duration buffer before a batch is sent. This patch caps the maximum buffer size to prevent this. Bug: 406377213 Test: atest PerformanceHintNativeTestCases Flag: EXEMPT BUGFIX Change-Id: I288299636682644d118250339330be161262398f