Avoid processing the log event when there is no config.

Test: statsd unit test passed
Change-Id: If9840283accdeaa36d956213a1a9fec44204e77d
This commit is contained in:
Yangster-mac
2018-01-19 09:47:39 -08:00
parent e5b3296316
commit 8282d5b8bc

View File

@@ -127,6 +127,10 @@ void StatsLogProcessor::OnLogEvent(LogEvent* event) {
StatsdStats::getInstance().noteAtomLogged(
event->GetTagId(), event->GetTimestampNs() / NS_PER_SEC);
if (mMetricsManagers.empty()) {
return;
}
// Hard-coded logic to update the isolated uid's in the uid-map.
// The field numbers need to be currently updated by hand with atoms.proto
if (event->GetTagId() == android::util::ISOLATED_UID_CHANGED) {