Lines Matching refs:elapsedRealtimeNs
397 void StatsLogProcessor::OnLogEvent(LogEvent* event, int64_t elapsedRealtimeNs) { in OnLogEvent() argument
446 MillisToNano(mNextAnomalyAlarmTime) <= elapsedRealtimeNs) { in OnLogEvent()
448 VLOG("informing anomaly alarm at time %lld", (long long)elapsedRealtimeNs); in OnLogEvent()
453 informAnomalyAlarmFiredLocked(NanoToMillis(elapsedRealtimeNs)); in OnLogEvent()
456 const int64_t curTimeSec = NanoToSeconds(elapsedRealtimeNs); in OnLogEvent()
462 flushRestrictedDataIfNecessaryLocked(elapsedRealtimeNs); in OnLogEvent()
463 enforceDataTtlsIfNecessaryLocked(getWallClockNs(), elapsedRealtimeNs); in OnLogEvent()
464 enforceDbGuardrailsIfNecessaryLocked(getWallClockNs(), elapsedRealtimeNs); in OnLogEvent()
508 if (elapsedRealtimeNs - lastBroadcastTime->second < in OnLogEvent()
519 mLastActivationBroadcastTimes[uid] = elapsedRealtimeNs; in OnLogEvent()
525 mLastActivationBroadcastTimes[uid] = elapsedRealtimeNs; in OnLogEvent()
903 const int64_t elapsedRealtimeNs) { in enforceDataTtlsIfNecessaryLocked() argument
907 if (elapsedRealtimeNs - mLastTtlTime < StatsdStats::kMinTtlCheckPeriodNs) { in enforceDataTtlsIfNecessaryLocked()
910 enforceDataTtlsLocked(wallClockNs, elapsedRealtimeNs); in enforceDataTtlsIfNecessaryLocked()
913 void StatsLogProcessor::flushRestrictedDataIfNecessaryLocked(const int64_t elapsedRealtimeNs) { in flushRestrictedDataIfNecessaryLocked() argument
917 if (elapsedRealtimeNs - mLastFlushRestrictedTime < StatsdStats::kMinFlushRestrictedPeriodNs) { in flushRestrictedDataIfNecessaryLocked()
920 flushRestrictedDataLocked(elapsedRealtimeNs); in flushRestrictedDataIfNecessaryLocked()
939 const int64_t elapsedRealtimeNs = getElapsedRealtimeNs(); in querySql() local
982 flushRestrictedDataLocked(elapsedRealtimeNs); in querySql()
983 enforceDataTtlsLocked(getWallClockNs(), elapsedRealtimeNs); in querySql()
1019 /*queryLatencyNs=*/getElapsedRealtimeNs() - elapsedRealtimeNs); in querySql()
1056 const int64_t elapsedRealtimeNs) { in EnforceDataTtls() argument
1061 enforceDataTtlsLocked(wallClockNs, elapsedRealtimeNs); in EnforceDataTtls()
1065 const int64_t elapsedRealtimeNs) { in enforceDataTtlsLocked() argument
1069 mLastTtlTime = elapsedRealtimeNs; in enforceDataTtlsLocked()
1073 const int64_t elapsedRealtimeNs) { in enforceDbGuardrailsIfNecessaryLocked() argument
1074 if (elapsedRealtimeNs - mLastDbGuardrailEnforcementTime < in enforceDbGuardrailsIfNecessaryLocked()
1080 mLastDbGuardrailEnforcementTime = elapsedRealtimeNs; in enforceDbGuardrailsIfNecessaryLocked()
1105 void StatsLogProcessor::flushRestrictedDataLocked(const int64_t elapsedRealtimeNs) { in flushRestrictedDataLocked() argument
1111 mLastFlushRestrictedTime = elapsedRealtimeNs; in flushRestrictedDataLocked()
1116 int64_t elapsedRealtimeNs = getElapsedRealtimeNs(); in flushIfNecessaryLocked() local
1122 if (elapsedRealtimeNs - lastCheckTime->second < minCheckPeriodNs) { in flushIfNecessaryLocked()
1130 mLastByteSizeTimes[key] = elapsedRealtimeNs; in flushIfNecessaryLocked()
1137 metricsManager.dropData(elapsedRealtimeNs); in flushIfNecessaryLocked()
1157 if (elapsedRealtimeNs - lastBroadcastTime->second < in flushIfNecessaryLocked()
1166 mLastBroadcastTimes[key] = elapsedRealtimeNs; in flushIfNecessaryLocked()
1396 const int64_t elapsedRealtimeNs, in WriteDataToDiskLocked() argument
1401 if (static_cast<unsigned long long>(elapsedRealtimeNs) < in WriteDataToDiskLocked()
1407 mLastWriteTimeNs = elapsedRealtimeNs; in WriteDataToDiskLocked()
1409 WriteDataToDiskLocked(pair.first, elapsedRealtimeNs, wallClockNs, dumpReportReason, in WriteDataToDiskLocked()
1416 const int64_t elapsedRealtimeNs, in WriteDataToDisk() argument
1419 WriteDataToDiskLocked(dumpReportReason, dumpLatency, elapsedRealtimeNs, wallClockNs); in WriteDataToDisk()