Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 43d3a9d5 authored by Yao Chen's avatar Yao Chen Committed by Android (Google) Code Review
Browse files

Merge "Let the event flow to MetricsManager. Comment out the size check only."

parents fc9696e4 312e8983
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -84,12 +84,12 @@ void StatsLogProcessor::onAnomalyAlarmFired(
void StatsLogProcessor::OnLogEvent(const LogEvent& msg) {
    StatsdStats::getInstance().noteAtomLogged(msg.GetTagId(), msg.GetTimestampNs() / NS_PER_SEC);
    // pass the event to metrics managers.
    for (auto& pair : mMetricsManagers) {
        pair.second->onLogEvent(msg);
        // TODO: THIS CHECK FAILS BECAUSE ONCE UIDMAP SIZE EXCEEDS LIMIT, DROPPING METRICS DATA
        // DOESN'T HELP. FIX THIS.
    //for (auto& pair : mMetricsManagers) {
    //    pair.second->onLogEvent(msg);
        // flushIfNecessary(msg.GetTimestampNs(), pair.first, pair.second);
    //}
    }

    // 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