[Sampling profiler] Factor out platform config 3/4
Third in a series factoring the ThreadProfiler platform specific configuration state from the code that takes action on the state. Defines a GetEnabledRate function that returns how frequently the profiler should be enabled overall, in support of a synthetic experiment. The end goal is to reduce the configuration complexity, to support enabling per-thread on Android. Bug: 1129939 Change-Id: Ib0b23e2c56ff45644c521157789bbf1c1dc64261 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2424671 Commit-Queue: Mike Wittman <wittman@chromium.org> Reviewed-by:Etienne Pierre-Doray <etiennep@chromium.org> Cr-Commit-Position: refs/heads/master@{#811741}
Showing
Please register or sign in to comment