Merge "Incident dump does not include current bucket" into rvc-dev am: 298dd714eb am: 35333908f9

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11852825

Change-Id: Ia2ca18a4f53a3c78bedac23067a79e609125d519
This commit is contained in:
TreeHugger Robot
2020-06-13 02:22:11 +00:00
committed by Automerger Merge Worker

View File

@@ -267,8 +267,11 @@ void StatsService::dumpIncidentSection(int out) {
for (const ConfigKey& configKey : mConfigManager->GetAllConfigKeys()) {
uint64_t reportsListToken =
proto.start(FIELD_TYPE_MESSAGE | FIELD_COUNT_REPEATED | FIELD_ID_REPORTS_LIST);
// Don't include the current bucket to avoid skipping buckets.
// If we need to include the current bucket later, consider changing to NO_TIME_CONSTRAINTS
// or other alternatives to avoid skipping buckets for pulled metrics.
mProcessor->onDumpReport(configKey, getElapsedRealtimeNs(),
true /* includeCurrentBucket */, false /* erase_data */,
false /* includeCurrentBucket */, false /* erase_data */,
ADB_DUMP,
FAST,
&proto);