diff options
author | Calin Juravle <calin@google.com> | 2021-06-21 20:22:12 -0700 |
---|---|---|
committer | Calin Juravle <calin@google.com> | 2021-06-23 07:45:01 -0700 |
commit | 029a811dcb18e54d54aca805db7f8af452798a0a (patch) | |
tree | 7175f40aa863df9d5621866da789423c955b92b1 /compiler/optimizing/graph_visualizer.h | |
parent | 306191eaf91ea6833c490c091b11f50e0338ba39 (diff) |
Add sampling support in the metrics reporter
The sample rate percentage can be configured via 2 runtime
flags (MetricsReportingMods and MetricsReportingNumMods).
A runtime session will report metrics if and only if its
session id % MetricsReportingNumMods < MetricsReportingMods.
A value of 0 on the mods will effectively disable reporting,
while configuring MetricsReportingMods to be equal to the
MetricsReportingNumMods will enable reporting in all cases.
Test: gtest
Bug: 170149255
Merged-In: Ie1353e4fc0ff695fc627696145d95e9ccd3c6a94
Change-Id: Ie1353e4fc0ff695fc627696145d95e9ccd3c6a94
(cherry picked from commit 17e0b652b59b0f7ebc821c3a86036e86079642bb)
Diffstat (limited to 'compiler/optimizing/graph_visualizer.h')
0 files changed, 0 insertions, 0 deletions