-
Chinglin Yu authored
This improves the stability of ProfileProviderRealCollectionTest suite running on VM: * Increase the default collection duration. Default colleciton duration is doubled to 2 sec. Jankiness collection duration is increased from 0.5 sec. to 1.5 sec. * Create a thread that spins the CPU during profile collection. This ensures that the CPU cycles counter will move forward to trigger perf collection. Also improves error logging: on collection failure, log collection failure reasons recorded in the UMA metric. Bug: 1132045 Test: Run profile_provider_unittest on crosvm Change-Id: I600ace7500144398bb7ed56ed80a75fcb1df1907 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2449509 Commit-Queue: Chinglin Yu <chinglinyu@chromium.org> Reviewed-by:
Gabriel Marin <gmx@chromium.org> Cr-Commit-Position: refs/heads/master@{#816048}
6e1f3ec8