/frameworks/base/cmds/statsd/src/guardrail/ |
D | StatsdStats.cpp | 117 const std::map<int, std::pair<size_t, size_t>> StatsdStats::kAtomDimensionKeySizeLimitMap = { 123 StatsdStats::StatsdStats() { in StatsdStats() function in android::os::statsd::StatsdStats 128 StatsdStats& StatsdStats::getInstance() { in getInstance() 129 static StatsdStats statsInstance; in getInstance() 133 void StatsdStats::addToIceBoxLocked(shared_ptr<ConfigStats>& stats) { in addToIceBoxLocked() 141 void StatsdStats::noteConfigReceived( in noteConfigReceived() 172 void StatsdStats::noteConfigRemovedInternalLocked(const ConfigKey& key) { in noteConfigRemovedInternalLocked() 182 void StatsdStats::noteConfigRemoved(const ConfigKey& key) { in noteConfigRemoved() 187 void StatsdStats::noteConfigResetInternalLocked(const ConfigKey& key) { in noteConfigResetInternalLocked() 194 void StatsdStats::noteConfigReset(const ConfigKey& key) { in noteConfigReset() [all …]
|
D | StatsdStats.h | 93 class StatsdStats { 95 static StatsdStats& getInstance(); 96 ~StatsdStats(){}; in ~StatsdStats() 548 StatsdStats(); 657 StatsdStats::AtomMetricStats& getAtomMetricStats(int64_t metricId);
|
/frameworks/base/cmds/statsd/src/ |
D | stats_log_util.h | 81 void writePullerStatsToStream(const std::pair<int, StatsdStats::PulledAtomStats>& pair, 85 void writeAtomMetricStatsToStream(const std::pair<int64_t, StatsdStats::AtomMetricStats> &pair, 108 return atomId >= StatsdStats::kVendorPulledAtomStartTag && atomId < StatsdStats::kMaxAtomTag; in isVendorPulledAtom() 112 return atomId >= StatsdStats::kPullAtomStartTag && atomId < StatsdStats::kVendorAtomStartTag; in isPulledAtom()
|
D | StatsLogProcessor.cpp | 394 StatsdStats::getInstance().noteAtomLogged(atomId, eventElapsedTimeNs / NS_PER_SEC); in OnLogEvent() 396 StatsdStats::getInstance().noteAtomError(atomId); in OnLogEvent() 435 if (curTimeSec - mLastPullerCacheClearTimeSec > StatsdStats::kPullerCacheClearIntervalSec) { in OnLogEvent() 464 StatsdStats::getInstance().noteActiveStatusChanged(pair.first, isCurActive); in OnLogEvent() 475 StatsdStats::kMinActivationBroadcastPeriodNs) { in OnLogEvent() 476 StatsdStats::getInstance().noteActivationBroadcastGuardrailHit(uid); in OnLogEvent() 626 StatsdStats::getInstance().noteMetricsReportSent(key, proto.size()); in onDumpReport() 697 StatsdStats::getInstance().noteConfigReset(key); in resetConfigsLocked() 730 StatsdStats::getInstance().noteConfigRemoved(key); in OnConfigRemoved() 756 if (elapsedRealtimeNs - lastCheckTime->second < StatsdStats::kMinByteSizeCheckPeriodNs) { in flushIfNecessaryLocked() [all …]
|
D | StatsService.cpp | 97 StatsdStats::getInstance().noteRegisteredAnomalyAlarmChanged(); in StatsService() 103 StatsdStats::getInstance().noteRegisteredAnomalyAlarmChanged(); in __anon24fc2e590202() 111 StatsdStats::getInstance().noteRegisteredPeriodicAlarmChanged(); in __anon24fc2e590302() 117 StatsdStats::getInstance().noteRegisteredPeriodicAlarmChanged(); in __anon24fc2e590402() 252 StatsdStats::getInstance().dumpStats(&data, false); // does not reset statsdStats. in dumpStatsdStats() 257 StatsdStats::getInstance().dumpStats(out); in dumpStatsdStats() 716 StatsdStats& statsdStats = StatsdStats::getInstance(); in cmd_print_stats() 1120 StatsdStats::getInstance().dumpStats(&unsignedOutput, false); // Don't reset the counters. in getMetadata() 1311 StatsdStats::getInstance().noteSystemServerRestart(getWallClockSec()); in statsCompanionServiceDiedImpl()
|
D | stats_log_util.cpp | 465 void writePullerStatsToStream(const std::pair<int, StatsdStats::PulledAtomStats>& pair, in writePullerStatsToStream() 516 void writeAtomMetricStatsToStream(const std::pair<int64_t, StatsdStats::AtomMetricStats> &pair, in writeAtomMetricStatsToStream() 576 (event.GetTagId() >= StatsdStats::kTimestampTruncationStartTag && in truncateTimestampIfNecessary() 577 event.GetTagId() <= StatsdStats::kTimestampTruncationEndTag)) { in truncateTimestampIfNecessary()
|
/frameworks/base/cmds/statsd/src/external/ |
D | StatsPuller.cpp | 49 StatsdStats::getInstance().notePull(mTagId); in Pull() 55 StatsdStats::getInstance().notePullFromCache(mTagId); in Pull() 61 StatsdStats::getInstance().updateMinPullIntervalSec( in Pull() 73 StatsdStats::getInstance().notePullTime(mTagId, pullElapsedDurationNs); in Pull() 79 StatsdStats::getInstance().notePullTimeout( in Pull() 92 StatsdStats::getInstance().noteEmptyData(mTagId); in Pull()
|
D | StatsPullerManager.cpp | 73 StatsdStats::getInstance().notePullerCallbackRegistrationChanged(pullerKey.atomTag, in pullAtomCallbackDied() 115 StatsdStats::getInstance().notePullUidProviderNotFound(tagId); in PullLocked() 122 StatsdStats::getInstance().notePullUidProviderNotFound(tagId); in PullLocked() 142 StatsdStats::getInstance().notePullFailed(tagId); in PullLocked() 147 StatsdStats::getInstance().notePullerNotFound(tagId); in PullLocked() 157 StatsdStats::getInstance().notePullFailed(tagId); in PullLocked() 365 StatsdStats::getInstance().notePullerCallbackRegistrationChanged(atomTag, /*registered=*/true); in RegisterPullAtomCallback() 382 StatsdStats::getInstance().notePullerCallbackRegistrationChanged(atomTag, in UnregisterPullAtomCallback()
|
D | StatsPuller.h | 40 const int64_t pullTimeoutNs = StatsdStats::kPullMaxDelayNs, 74 const int64_t mPullTimeoutNs = StatsdStats::kPullMaxDelayNs;
|
D | StatsCallbackPuller.cpp | 75 StatsdStats::getInstance().noteAtomError(event->GetTagId(), in PullInternal() 89 StatsdStats::getInstance().notePullBinderCallFailed(mTagId); in PullInternal()
|
/frameworks/base/cmds/statsd/tests/guardrail/ |
D | StatsdStats_test.cpp | 31 StatsdStats stats; in TEST() 58 StatsdStats stats; in TEST() 79 StatsdStats stats; in TEST() 106 StatsdStats stats; in TEST() 222 StatsdStats stats; in TEST() 255 StatsdStats stats; in TEST() 257 int newAtom1 = StatsdStats::kMaxPushedAtomId + 1; in TEST() 258 int newAtom2 = StatsdStats::kMaxPushedAtomId + 2; in TEST() 288 StatsdStats stats; in TEST() 343 StatsdStats stats; in TEST() [all …]
|
/frameworks/base/cmds/statsd/src/metrics/ |
D | GaugeMetricProducer.cpp | 91 : StatsdStats::kPullMaxDelayNs), 92 mDimensionSoftLimit(StatsdStats::kAtomDimensionKeySizeLimitMap.find(pullTagId) != 93 StatsdStats::kAtomDimensionKeySizeLimitMap.end() 94 ? StatsdStats::kAtomDimensionKeySizeLimitMap.at(pullTagId).first 95 : StatsdStats::kDimensionKeySizeSoftLimit), 96 mDimensionHardLimit(StatsdStats::kAtomDimensionKeySizeLimitMap.find(pullTagId) != 97 StatsdStats::kAtomDimensionKeySizeLimitMap.end() 98 ? StatsdStats::kAtomDimensionKeySizeLimitMap.at(pullTagId).second 99 : StatsdStats::kDimensionKeySizeHardLimit), 330 StatsdStats::getInstance().notePullDelay(mPullTagId, pullDelayNs); in pullAndMatchEventsLocked() [all …]
|
D | ValueMetricProducer.cpp | 98 mDimensionSoftLimit(StatsdStats::kAtomDimensionKeySizeLimitMap.find(pullTagId) != in ValueMetricProducer() 99 StatsdStats::kAtomDimensionKeySizeLimitMap.end() in ValueMetricProducer() 100 ? StatsdStats::kAtomDimensionKeySizeLimitMap.at(pullTagId).first in ValueMetricProducer() 101 : StatsdStats::kDimensionKeySizeSoftLimit), in ValueMetricProducer() 102 mDimensionHardLimit(StatsdStats::kAtomDimensionKeySizeLimitMap.find(pullTagId) != in ValueMetricProducer() 103 StatsdStats::kAtomDimensionKeySizeLimitMap.end() in ValueMetricProducer() 104 ? StatsdStats::kAtomDimensionKeySizeLimitMap.at(pullTagId).second in ValueMetricProducer() 105 : StatsdStats::kDimensionKeySizeHardLimit), in ValueMetricProducer() 115 : StatsdStats::kPullMaxDelayNs), in ValueMetricProducer() 232 StatsdStats::getInstance().noteBucketDropped(mMetricId); in dropDataLocked() [all …]
|
D | MetricsManager.cpp | 106 if (mAllowedUid.size() + mAllowedPkg.size() > StatsdStats::kMaxLogSourceCount) { in MetricsManager() 139 if (numPullPackages > StatsdStats::kMaxPullAtomPackages) { in MetricsManager() 154 if (mAllMetricProducers.size() > StatsdStats::kMaxMetricCountPerConfig || in MetricsManager() 155 mAllConditionTrackers.size() > StatsdStats::kMaxConditionCountPerConfig || in MetricsManager() 156 mAllAtomMatchers.size() > StatsdStats::kMaxMatcherCountPerConfig) { in MetricsManager() 160 if (mAllAnomalyTrackers.size() > StatsdStats::kMaxAlertCountPerConfig) { in MetricsManager() 175 StatsdStats::getInstance().noteConfigReceived( in MetricsManager() 583 StatsdStats::getInstance().noteMatcherMatched(mConfigKey, in onLogEvent() 636 StatsdStats::getInstance().noteActiveStatusChanged(mConfigKey, in loadActiveConfig()
|
D | CountMetricProducer.cpp | 247 StatsdStats::getInstance().noteBucketDropped(mMetricId); in dropDataLocked() 263 if (mCurrentSlicedCounter->size() > StatsdStats::kDimensionKeySizeSoftLimit - 1) { in hitGuardRailLocked() 265 StatsdStats::getInstance().noteMetricDimensionSize(mConfigKey, mMetricId, newTupleCount); in hitGuardRailLocked() 267 if (newTupleCount > StatsdStats::kDimensionKeySizeHardLimit) { in hitGuardRailLocked() 270 StatsdStats::getInstance().noteHardDimensionLimitReached(mMetricId); in hitGuardRailLocked() 377 StatsdStats::getInstance().noteBucketCount(mMetricId); in flushCurrentBucketLocked()
|
D | DurationMetricProducer.cpp | 343 StatsdStats::getInstance().noteBucketDropped(mMetricId); in dropDataLocked() 464 StatsdStats::getInstance().noteBucketCount(mMetricId); in flushCurrentBucketLocked() 487 if (mCurrentSlicedDurationTrackerMap.size() > StatsdStats::kDimensionKeySizeSoftLimit - 1) { in hitGuardRailLocked() 489 StatsdStats::getInstance().noteMetricDimensionSize( in hitGuardRailLocked() 492 if (newTupleCount > StatsdStats::kDimensionKeySizeHardLimit) { in hitGuardRailLocked() 495 StatsdStats::getInstance().noteHardDimensionLimitReached(mMetricId); in hitGuardRailLocked()
|
D | EventMetricProducer.cpp | 86 StatsdStats::getInstance().noteBucketDropped(mMetricId); in dropDataLocked()
|
/frameworks/base/cmds/statsd/src/packages/ |
D | UidMap.cpp | 148 StatsdStats::getInstance().setCurrentUidMapMemory(mBytesUsed); in updateMap() 197 StatsdStats::getInstance().setCurrentUidMapMemory(mBytesUsed); in updateApp() 198 StatsdStats::getInstance().setUidMapChanges(mChanges.size()); in updateApp() 210 limit = StatsdStats::kMaxBytesUsedUidMap; in ensureBytesUsedBelowLimit() 219 StatsdStats::getInstance().noteUidMapDropped(1); in ensureBytesUsedBelowLimit() 240 if (mDeletedApps.size() > StatsdStats::kMaxDeletedAppsInUidMap) { in removeApp() 245 StatsdStats::getInstance().noteUidMapAppDeletionDropped(); in removeApp() 250 StatsdStats::getInstance().setCurrentUidMapMemory(mBytesUsed); in removeApp() 251 StatsdStats::getInstance().setUidMapChanges(mChanges.size()); in removeApp() 294 StatsdStats::getInstance().setUidMapChanges(0); in clearOutput() [all …]
|
/frameworks/base/cmds/statsd/src/socket/ |
D | StatsSocketListener.cpp | 115 StatsdStats::getInstance().noteLogLost((int32_t)getWallClockSec(), dropped_count, in onDataAvailable() 133 StatsdStats::getInstance().noteEventQueueOverflow(oldestTimestamp); in onDataAvailable()
|
/frameworks/base/cmds/statsd/src/metrics/duration_helper/ |
D | MaxDurationTracker.cpp | 46 if (mInfos.size() > StatsdStats::kDimensionKeySizeSoftLimit - 1) { in hitGuardRail() 48 StatsdStats::getInstance().noteMetricDimensionSize(mConfigKey, mTrackerId, newTupleCount); in hitGuardRail() 50 if (newTupleCount > StatsdStats::kDimensionKeySizeHardLimit) { in hitGuardRail()
|
D | OringDurationTracker.cpp | 46 if (mConditionKeyMap.size() > StatsdStats::kDimensionKeySizeSoftLimit - 1) { in hitGuardRail() 48 StatsdStats::getInstance().noteMetricDimensionSize(mConfigKey, mTrackerId, newTupleCount); in hitGuardRail() 50 if (newTupleCount > StatsdStats::kDimensionKeySizeHardLimit) { in hitGuardRail()
|
/frameworks/base/cmds/statsd/src/condition/ |
D | SimpleConditionTracker.cpp | 148 if (mSlicedConditionState.size() > StatsdStats::kDimensionKeySizeSoftLimit - 1) { in hitGuardRail() 150 … StatsdStats::getInstance().noteConditionDimensionSize(mConfigKey, mConditionId, newTupleCount); in hitGuardRail() 152 if (newTupleCount > StatsdStats::kDimensionKeySizeHardLimit) { in hitGuardRail()
|
/frameworks/base/cmds/statsd/src/storage/ |
D | StorageManager.cpp | 706 if (fileAge > StatsdStats::kMaxAgeSecond || in trimToFit() 707 (output.mIsHistory && fileAge > StatsdStats::kMaxLocalHistoryAgeSecond)) { in trimToFit() 723 if (fileNames.size() > StatsdStats::kMaxFileNumber || in trimToFit() 724 totalFileSize > StatsdStats::kMaxFileSize) { in trimToFit() 729 while (fileNames.size() > 0 && (fileNames.size() > StatsdStats::kMaxFileNumber || in trimToFit() 730 totalFileSize > StatsdStats::kMaxFileSize)) { in trimToFit()
|
/frameworks/base/cmds/statsd/tests/ |
D | StatsLogProcessor_test.cpp | 106 StatsdStats::kMaxMetricsBytesPerConfig * .95))); in TEST() 137 .WillRepeatedly(::testing::Return(int(StatsdStats::kMaxMetricsBytesPerConfig * 1.2))); in TEST() 328 StatsdStats::getInstance().reset(); in TEST() 344 EXPECT_NE(StatsdStats::getInstance().mConfigStats.end(), in TEST() 345 StatsdStats::getInstance().mConfigStats.find(key)); in TEST() 346 EXPECT_EQ(0, StatsdStats::getInstance().mIceBox.size()); in TEST() 353 EXPECT_EQ(StatsdStats::getInstance().mConfigStats.end(), in TEST() 354 StatsdStats::getInstance().mConfigStats.find(key)); in TEST() 356 EXPECT_EQ(2, StatsdStats::getInstance().mIceBox.size()); in TEST()
|
/frameworks/base/cmds/statsd/src/anomaly/ |
D | AnomalyTracker.cpp | 237 StatsdStats::getInstance().noteAnomalyDeclared(mConfigKey, mAlert.id()); in declareAnomaly()
|