/packages/modules/StatsD/statsd/src/guardrail/ |
D | StatsdStats.cpp | 221 const std::map<int, std::pair<size_t, size_t>> StatsdStats::kAtomDimensionKeySizeLimitMap = { 227 StatsdStats::StatsdStats() in StatsdStats() function in android::os::statsd::StatsdStats 233 StatsdStats& StatsdStats::getInstance() { in getInstance() 234 static StatsdStats statsInstance; in getInstance() 238 void StatsdStats::addToIceBoxLocked(shared_ptr<ConfigStats>& stats) { in addToIceBoxLocked() 246 void StatsdStats::noteConfigReceived( in noteConfigReceived() 278 void StatsdStats::noteConfigRemovedInternalLocked(const ConfigKey& key) { in noteConfigRemovedInternalLocked() 288 void StatsdStats::noteConfigRemoved(const ConfigKey& key) { in noteConfigRemoved() 293 void StatsdStats::noteConfigResetInternalLocked(const ConfigKey& key) { in noteConfigResetInternalLocked() 300 void StatsdStats::noteConfigReset(const ConfigKey& key) { in noteConfigReset() [all …]
|
/packages/modules/StatsD/statsd/tests/guardrail/ |
D | StatsdStats_test.cpp | 69 StatsdStats stats; in TEST() 93 StatsdStats stats; in TEST() 107 StatsdStats stats; in TEST() 149 StatsdStats stats; in TEST() 188 StatsdStats stats; in TEST() 217 StatsdStats stats; in TEST() 240 StatsdStats stats; in TEST() 354 StatsdStats stats; in TEST() 384 StatsdStats stats; in TEST() 386 int newAtom1 = StatsdStats::kMaxPushedAtomId + 1; in TEST() [all …]
|
/packages/modules/StatsD/statsd/tests/log_event/ |
D | LogEventQueue_test.cpp | 119 StatsdStats::getInstance().reset(); in TEST() 134 EXPECT_EQ(StatsdStats::getInstance().mEventQueueMaxSizeObserved, i + 1); in TEST() 135 EXPECT_EQ(StatsdStats::getInstance().mEventQueueMaxSizeObservedElapsedNanos, eventTimeNs); in TEST() 138 const int32_t lastMaxSizeObserved = StatsdStats::getInstance().mEventQueueMaxSizeObserved; in TEST() 140 StatsdStats::getInstance().mEventQueueMaxSizeObservedElapsedNanos; in TEST() 159 EXPECT_EQ(StatsdStats::getInstance().mEventQueueMaxSizeObserved, lastMaxSizeObserved); in TEST() 160 EXPECT_EQ(StatsdStats::getInstance().mEventQueueMaxSizeObservedElapsedNanos, in TEST() 181 EXPECT_EQ(StatsdStats::getInstance().mEventQueueMaxSizeObserved, lastMaxSizeObserved); in TEST() 182 EXPECT_EQ(StatsdStats::getInstance().mEventQueueMaxSizeObservedElapsedNanos, in TEST() 193 EXPECT_EQ(StatsdStats::getInstance().mEventQueueMaxSizeObserved, in TEST() [all …]
|
/packages/modules/StatsD/statsd/tests/metrics/ |
D | OringDurationTracker_test.cpp | 70 StatsdStats::kDimensionKeySizeHardLimitMin); in TEST() 73 StatsdStats::kDimensionKeySizeHardLimitMin); // overlapping wl in TEST() 102 StatsdStats::kDimensionKeySizeHardLimitMin); in TEST() 104 StatsdStats::kDimensionKeySizeHardLimitMin); // overlapping wl in TEST() 135 StatsdStats::kDimensionKeySizeHardLimitMin); in TEST() 137 StatsdStats::kDimensionKeySizeHardLimitMin); // overlapping wl in TEST() 166 StatsdStats::kDimensionKeySizeHardLimitMin); in TEST() 170 StatsdStats::kDimensionKeySizeHardLimitMin); in TEST() 212 StatsdStats::kDimensionKeySizeHardLimitMin); in TEST() 252 StatsdStats::kDimensionKeySizeHardLimitMin); in TEST() [all …]
|
D | MaxDurationTracker_test.cpp | 71 StatsdStats::kDimensionKeySizeHardLimitMin); in TEST() 74 StatsdStats::kDimensionKeySizeHardLimitMin); in TEST() 80 StatsdStats::kDimensionKeySizeHardLimitMin); in TEST() 108 StatsdStats::kDimensionKeySizeHardLimitMin); in TEST() 112 StatsdStats::kDimensionKeySizeHardLimitMin); in TEST() 145 StatsdStats::kDimensionKeySizeHardLimitMin); in TEST() 149 ConditionKey(), StatsdStats::kDimensionKeySizeHardLimitMin); in TEST() 185 StatsdStats::kDimensionKeySizeHardLimitMin); in TEST() 187 StatsdStats::kDimensionKeySizeHardLimitMin); in TEST() 232 StatsdStats::kDimensionKeySizeHardLimitMin); in TEST() [all …]
|
/packages/modules/StatsD/statsd/src/external/ |
D | StatsPuller.cpp | 53 StatsdStats::getInstance().notePull(mTagId); in Pull() 59 StatsdStats::getInstance().notePullFromCache(mTagId); in Pull() 65 StatsdStats::getInstance().updateMinPullIntervalSec( in Pull() 78 StatsdStats::getInstance().notePullTime(mTagId, pullElapsedDurationNs); in Pull() 84 StatsdStats::getInstance().notePullTimeout( in Pull() 97 StatsdStats::getInstance().noteEmptyData(mTagId); in Pull()
|
D | StatsPullerManager.cpp | 76 StatsdStats::getInstance().notePullUidProviderNotFound(tagId); in PullLocked() 83 StatsdStats::getInstance().notePullUidProviderNotFound(tagId); in PullLocked() 100 StatsdStats::getInstance().notePullFailed(tagId); in PullLocked() 105 StatsdStats::getInstance().notePullerCallbackRegistrationChanged( in PullLocked() 113 StatsdStats::getInstance().notePullerNotFound(tagId); in PullLocked() 340 StatsdStats::getInstance().notePullerCallbackRegistrationChanged(atomTag, in RegisterPullAtomCallback() 344 StatsdStats::getInstance().notePullerCallbackRegistrationChanged(atomTag, /*registered=*/true); in RegisterPullAtomCallback() 352 StatsdStats::getInstance().notePullerCallbackRegistrationChanged(atomTag, in UnregisterPullAtomCallback()
|
D | StatsPuller.h | 45 const int64_t pullTimeoutNs = StatsdStats::kPullMaxDelayNs, 80 const int64_t mPullTimeoutNs = StatsdStats::kPullMaxDelayNs;
|
D | StatsCallbackPuller.cpp | 75 StatsdStats::getInstance().noteAtomError(event->GetTagId(), in PullInternal() 89 StatsdStats::getInstance().notePullBinderCallFailed(mTagId); in PullInternal()
|
/packages/modules/StatsD/statsd/src/ |
D | stats_log_util.h | 88 void writePullerStatsToStream(const std::pair<int, StatsdStats::PulledAtomStats>& pair, 92 void writeAtomMetricStatsToStream(const std::pair<int64_t, StatsdStats::AtomMetricStats> &pair, 118 return atomId >= StatsdStats::kVendorPulledAtomStartTag && atomId < StatsdStats::kMaxAtomTag; in isVendorPulledAtom() 122 return atomId >= StatsdStats::kPullAtomStartTag && atomId < StatsdStats::kVendorAtomStartTag; in isPulledAtom()
|
D | StatsLogProcessor.cpp | 403 StatsdStats::getInstance().noteAtomLogged(atomId, eventElapsedTimeNs / NS_PER_SEC, in OnLogEvent() 406 StatsdStats::getInstance().noteAtomError(atomId); in OnLogEvent() 457 if (curTimeSec - mLastPullerCacheClearTimeSec > StatsdStats::kPullerCacheClearIntervalSec) { in OnLogEvent() 498 StatsdStats::getInstance().noteActiveStatusChanged(pair.first, isCurActive); in OnLogEvent() 509 StatsdStats::kMinActivationBroadcastPeriodNs) { in OnLogEvent() 510 StatsdStats::getInstance().noteActivationBroadcastGuardrailHit(uid); in OnLogEvent() 570 StatsdStats::getInstance().noteDbDeletionConfigUpdated(key); in OnConfigUpdatedLocked() 595 StatsdStats::getInstance().noteDeviceInfoTableCreationFailed(key); in OnConfigUpdatedLocked() 629 StatsdStats::getInstance().noteDbConfigInvalid(key); in OnConfigUpdatedLocked() 713 StatsdStats::getInstance().getStatsdStatsId()); in onDumpReport() [all …]
|
D | StatsService.cpp | 134 StatsdStats::getInstance().noteRegisteredAnomalyAlarmChanged(); in StatsService() 138 StatsdStats::getInstance().noteRegisteredAnomalyAlarmChanged(); in __anon3b4d5f610202() 145 StatsdStats::getInstance().noteRegisteredPeriodicAlarmChanged(); in __anon3b4d5f610302() 151 StatsdStats::getInstance().noteRegisteredPeriodicAlarmChanged(); in __anon3b4d5f610402() 325 StatsdStats::getInstance().dumpStats(&data, false); // does not reset statsdStats. in dumpStatsdStats() 330 StatsdStats::getInstance().dumpStats(out); in dumpStatsdStats() 786 StatsdStats& statsdStats = StatsdStats::getInstance(); in cmd_print_stats() 1232 StatsdStats::getInstance().dumpStats(output, false); // Don't reset the counters. in getMetadata() 1450 StatsdStats::getInstance().noteSystemServerRestart(getWallClockSec()); in statsCompanionServiceDiedImpl() 1520 StatsdStats::getInstance().noteQueryRestrictedMetricFailed( in querySql()
|
/packages/modules/StatsD/statsd/src/metrics/ |
D | RestrictedEventMetricProducer.cpp | 58 StatsdStats::getInstance().noteRestrictedMetricCategoryChanged(mConfigKey, mMetricId); in onMatchedLogEventInternalLocked() 98 StatsdStats::getInstance().noteBucketDropped(mMetricId); in dropDataLocked() 117 StatsdStats::getInstance().noteRestrictedMetricTableCreationError(mConfigKey, in flushRestrictedData() 127 StatsdStats::getInstance().noteRestrictedMetricInsertError(mConfigKey, mMetricId); in flushRestrictedData() 129 StatsdStats::getInstance().noteRestrictedMetricFlushLatency( in flushRestrictedData() 151 StatsdStats::getInstance().noteRestrictedMetricTableDeletionError(mConfigKey, mMetricId); in deleteMetricTable()
|
D | MetricsManager.cpp | 235 if (mAllowedUid.size() + mAllowedPkg.size() > StatsdStats::kMaxLogSourceCount) { in createAllLogSourcesFromConfig() 268 if (numPullPackages > StatsdStats::kMaxPullAtomPackages) { in createAllLogSourcesFromConfig() 280 mMaxMetricsBytes = StatsdStats::kDefaultMaxMetricsBytesPerConfig; in setMaxMetricsBytesFromConfig() 285 StatsdStats::kHardMaxMetricsBytesPerConfig) { in setMaxMetricsBytesFromConfig() 287 mMaxMetricsBytes = StatsdStats::kDefaultMaxMetricsBytesPerConfig; in setMaxMetricsBytesFromConfig() 295 mTriggerGetDataBytes = StatsdStats::kDefaultBytesPerConfigTriggerGetData; in setTriggerGetDataBytesFromConfig() 300 StatsdStats::kHardMaxTriggerGetDataBytes) { in setTriggerGetDataBytesFromConfig() 302 mTriggerGetDataBytes = StatsdStats::kDefaultBytesPerConfigTriggerGetData; in setTriggerGetDataBytesFromConfig() 310 if (mAllMetricProducers.size() > StatsdStats::kMaxMetricCountPerConfig) { in verifyGuardrailsAndUpdateStatsdStats() 314 if (mAllConditionTrackers.size() > StatsdStats::kMaxConditionCountPerConfig) { in verifyGuardrailsAndUpdateStatsdStats() [all …]
|
D | NumericValueMetricProducer.cpp | 86 : StatsdStats::kPullMaxDelayNs), in NumericValueMetricProducer() 213 StatsdStats::getInstance().noteBucketBoundaryDelayNs( in onDataPulled() 249 StatsdStats::getInstance().noteLateLogEventSkipped(mMetricId); in accumulateEvents() 256 StatsdStats::getInstance().notePullDelay(mPullAtomId, pullDelayNs); in accumulateEvents() 260 StatsdStats::getInstance().notePullExceedMaxDelay(mPullAtomId); in accumulateEvents() 285 StatsdStats::getInstance().noteBadValueType(mMetricId); in accumulateEvents() 423 StatsdStats::getInstance().noteBadValueType(mMetricId); in aggregateFields() 453 StatsdStats::getInstance().notePullDataError(mPullAtomId); in aggregateFields() 467 StatsdStats::getInstance().notePullDataError(mPullAtomId); in aggregateFields() 652 bool dimensionGuardrailHit = StatsdStats::getInstance().hasHitDimensionGuardrail(mMetricId); in byteSizeLocked()
|
D | ValueMetricProducer.cpp | 306 StatsdStats::getInstance().noteBucketDropped(mMetricId); in dropDataLocked() 360 if (StatsdStats::getInstance().hasHitDimensionGuardrail(mMetricId)) { in onDumpReportLocked() 486 StatsdStats::getInstance().noteInvalidatedBucket(mMetricId); in invalidateCurrentBucket() 516 StatsdStats::getInstance().noteLateLogEventSkipped(mMetricId); in onActiveStateChangedLocked() 560 StatsdStats::getInstance().noteLateLogEventSkipped(mMetricId); in onConditionChangedLocked() 561 StatsdStats::getInstance().noteConditionChangeInNextBucket(mMetricId); in onConditionChangedLocked() 661 StatsdStats::getInstance().noteMetricDimensionSize(mConfigKey, mMetricId, newTupleCount); in hitGuardRailLocked() 669 StatsdStats::getInstance().noteHardDimensionLimitReached(mMetricId); in hitGuardRailLocked() 781 StatsdStats::getInstance().noteBucketUnknownCondition(mMetricId); in flushCurrentBucketLocked() 813 StatsdStats::getInstance().noteSkippedForwardBuckets(mMetricId); in closeCurrentBucket() [all …]
|
D | GaugeMetricProducer.cpp | 102 : StatsdStats::kPullMaxDelayNs), 415 StatsdStats::getInstance().notePullDelay(mPullTagId, pullDelayNs); in pullAndMatchEventsLocked() 418 StatsdStats::getInstance().notePullExceedMaxDelay(mPullTagId); in pullAndMatchEventsLocked() 508 StatsdStats::getInstance().notePullDelay(mPullTagId, pullDelayNs); in onDataPulled() 511 StatsdStats::getInstance().notePullExceedMaxDelay(mPullTagId); in onDataPulled() 531 StatsdStats::getInstance().noteMetricDimensionSize(mConfigKey, mMetricId, newTupleCount); in hitGuardRailLocked() 540 StatsdStats::getInstance().noteHardDimensionLimitReached(mMetricId); in hitGuardRailLocked() 630 StatsdStats::getInstance().noteBucketDropped(mMetricId); in dropDataLocked() 712 StatsdStats::getInstance().noteBucketCount(mMetricId); in flushCurrentBucketLocked()
|
D | CountMetricProducer.cpp | 87 StatsdStats::clampDimensionKeySizeLimit(metric.max_dimensions_per_bucket())) { in CountMetricProducer() 328 StatsdStats::getInstance().noteBucketDropped(mMetricId); in dropDataLocked() 351 if (mCurrentSlicedCounter->size() >= StatsdStats::kDimensionKeySizeSoftLimit) { in hitGuardRailLocked() 353 StatsdStats::getInstance().noteMetricDimensionSize(mConfigKey, mMetricId, newTupleCount); in hitGuardRailLocked() 362 StatsdStats::getInstance().noteHardDimensionLimitReached(mMetricId); in hitGuardRailLocked() 501 StatsdStats::getInstance().noteBucketCount(mMetricId); in flushCurrentBucketLocked()
|
D | DurationMetricProducer.cpp | 92 StatsdStats::clampDimensionKeySizeLimit(metric.max_dimensions_per_bucket())) { in DurationMetricProducer() 502 StatsdStats::getInstance().noteBucketDropped(mMetricId); in dropDataLocked() 531 if (StatsdStats::getInstance().hasHitDimensionGuardrail(mMetricId)) { in onDumpReportLocked() 642 StatsdStats::getInstance().noteBucketCount(mMetricId); in flushCurrentBucketLocked() 667 if (mCurrentSlicedDurationTrackerMap.size() >= StatsdStats::kDimensionKeySizeSoftLimit) { in hitGuardRailLocked() 669 StatsdStats::getInstance().noteMetricDimensionSize( in hitGuardRailLocked() 678 StatsdStats::getInstance().noteHardDimensionLimitReached(mMetricId); in hitGuardRailLocked() 873 StatsdStats::getInstance().hasHitDimensionGuardrail(mMetricId); in byteSizeLocked()
|
/packages/modules/StatsD/statsd/src/packages/ |
D | UidMap.cpp | 163 StatsdStats::getInstance().setCurrentUidMapMemory(mBytesUsed); in updateMap() 211 StatsdStats::getInstance().setCurrentUidMapMemory(mBytesUsed); in updateApp() 212 StatsdStats::getInstance().setUidMapChanges(mChanges.size()); in updateApp() 224 limit = StatsdStats::kMaxBytesUsedUidMap; in ensureBytesUsedBelowLimit() 233 StatsdStats::getInstance().noteUidMapDropped(1); in ensureBytesUsedBelowLimit() 253 if (mDeletedApps.size() > StatsdStats::kMaxDeletedAppsInUidMap) { in removeApp() 258 StatsdStats::getInstance().noteUidMapAppDeletionDropped(); in removeApp() 263 StatsdStats::getInstance().setCurrentUidMapMemory(mBytesUsed); in removeApp() 264 StatsdStats::getInstance().setUidMapChanges(mChanges.size()); in removeApp() 307 StatsdStats::getInstance().setUidMapChanges(0); in clearOutput() [all …]
|
/packages/modules/StatsD/statsd/src/socket/ |
D | StatsSocketListener.cpp | 116 StatsdStats::getInstance().noteBatchSocketRead(i, mLastSocketReadTimeNs, elapsedTimeNs, in onDataAvailable() 158 StatsdStats::getInstance().noteLogLost((int32_t)getWallClockSec(), dropped_count, in processSocketMessage() 207 StatsdStats::getInstance().noteAtomSocketLoss(*lossInfo); in processStatsEventBuffer() 215 StatsdStats::getInstance().noteEventQueueSize(queueSize, atomTimestamp); in processStatsEventBuffer() 217 StatsdStats::getInstance().noteEventQueueOverflow(oldestTimestamp, atomId, isAtomSkipped); in processStatsEventBuffer()
|
/packages/modules/StatsD/statsd/tests/ |
D | DataCorruptionReason_test.cpp | 308 StatsdStats::getInstance().reset(); in SetUp() 326 StatsdStats::getInstance().reset(); in TearDown() 331 StatsdStats::getInstance().noteEventQueueOverflow(kAtomsLogTimeNs, kInterestAtomId, in TEST_F() 334 StatsdStats::getInstance().noteEventQueueOverflow(kAtomsLogTimeNs, kUnusedAtomId, in TEST_F() 354 StatsdStats::getInstance().noteEventQueueOverflow(kAtomsLogTimeNs, kInterestAtomId, in TEST_F() 372 StatsdStats::getInstance().noteEventQueueOverflow(kAtomsLogTimeNs + 100, kInterestAtomId, in TEST_F() 391 StatsdStats::getInstance().noteEventQueueOverflow(kAtomsLogTimeNs, kInterestAtomId, in TEST_F()
|
D | SocketListener_test.cpp | 87 StatsdStats::getInstance().reset(); in TEST_P() 102 EXPECT_EQ(StatsdStats::getInstance().mEventQueueMaxSizeObserved, kEventCount); in TEST_P() 103 EXPECT_EQ(StatsdStats::getInstance().mEventQueueMaxSizeObservedElapsedNanos, lastEventTs); in TEST_P()
|
/packages/modules/StatsD/statsd/src/storage/ |
D | StorageManager.cpp | 751 if (fileAge > StatsdStats::kMaxAgeSecond || in trimToFit() 752 (output.mIsHistory && fileAge > StatsdStats::kMaxLocalHistoryAgeSecond)) { in trimToFit() 768 if (fileNames.size() > StatsdStats::kMaxFileNumber || in trimToFit() 769 totalFileSize > StatsdStats::kMaxFileSize) { in trimToFit() 774 while (fileNames.size() > 0 && (fileNames.size() > StatsdStats::kMaxFileNumber || in trimToFit() 775 totalFileSize > StatsdStats::kMaxFileSize)) { in trimToFit() 836 int64_t deleteThresholdSec = currWallClockSec - StatsdStats::kMaxAgeSecond; in enforceDbGuardrails() 844 StatsdStats::getInstance().noteDbStatFailed(key); in enforceDbGuardrails() 849 StatsdStats::getInstance().noteRestrictedConfigDbSize(key, currWallClockSec, in enforceDbGuardrails() 852 StatsdStats::getInstance().noteDbTooOld(key); in enforceDbGuardrails() [all …]
|
/packages/modules/StatsD/statsd/src/shell/ |
D | ShellSubscriberClient.cpp | 169 StatsdStats::getInstance().noteSubscriptionStarted(id, readConfigResult->pushedMatchers.size(), in create() 233 StatsdStats::getInstance().noteSubscriptionAtomPulled( in pullIfNeeded() 352 StatsdStats::getInstance().noteSubscriptionFlushed(mId); in triggerCallback() 369 StatsdStats::getInstance().noteSubscriptionEnded(mId); in onUnsubscribe()
|