Merge "Avoid processing the log event when there is no config."
This commit is contained in:
committed by
Android (Google) Code Review
commit
74fde1cd08
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user