[PM] Expose EAGER measurement mode for testing.
This adds MeasurementMode::kEagerForTesting, which can only be used if SetEagerMemoryMeasurementEnabledForTesting is called. This mode causes an instrumented GC as soon as the measurement request is sent, so the measurement times are more predictable in tests. R=fdoray Bug: 1122131 Change-Id: I7901f3021cea1e133a9c20c94ad7082bad114fd5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2386775 Commit-Queue: Joe Mason <joenotcharles@chromium.org> Reviewed-by:François Doray <fdoray@chromium.org> Auto-Submit: Joe Mason <joenotcharles@chromium.org> Cr-Commit-Position: refs/heads/master@{#804011}
Showing
Please register or sign in to comment