Home
last modified time | relevance | path

Searched refs:StatsdStats (Results 1 – 25 of 30) sorted by relevance

12

/packages/modules/StatsD/statsd/src/guardrail/
DStatsdStats.cpp117 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 …]
DStatsdStats.h93 class StatsdStats {
95 static StatsdStats& getInstance();
96 ~StatsdStats(){}; in ~StatsdStats()
548 StatsdStats();
657 StatsdStats::AtomMetricStats& getAtomMetricStats(int64_t metricId);
/packages/modules/StatsD/statsd/tests/guardrail/
DStatsdStats_test.cpp31 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 …]
/packages/modules/StatsD/statsd/src/metrics/
DValueMetricProducer.cpp101 mDimensionSoftLimit(StatsdStats::kAtomDimensionKeySizeLimitMap.find(pullTagId) != in ValueMetricProducer()
102 StatsdStats::kAtomDimensionKeySizeLimitMap.end() in ValueMetricProducer()
103 ? StatsdStats::kAtomDimensionKeySizeLimitMap.at(pullTagId).first in ValueMetricProducer()
104 : StatsdStats::kDimensionKeySizeSoftLimit), in ValueMetricProducer()
105 mDimensionHardLimit(StatsdStats::kAtomDimensionKeySizeLimitMap.find(pullTagId) != in ValueMetricProducer()
106 StatsdStats::kAtomDimensionKeySizeLimitMap.end() in ValueMetricProducer()
107 ? StatsdStats::kAtomDimensionKeySizeLimitMap.at(pullTagId).second in ValueMetricProducer()
108 : StatsdStats::kDimensionKeySizeHardLimit), in ValueMetricProducer()
118 : StatsdStats::kPullMaxDelayNs), in ValueMetricProducer()
281 StatsdStats::getInstance().noteBucketDropped(mMetricId); in dropDataLocked()
[all …]
DGaugeMetricProducer.cpp94 : StatsdStats::kPullMaxDelayNs),
95 mDimensionSoftLimit(StatsdStats::kAtomDimensionKeySizeLimitMap.find(pullTagId) !=
96 StatsdStats::kAtomDimensionKeySizeLimitMap.end()
97 ? StatsdStats::kAtomDimensionKeySizeLimitMap.at(pullTagId).first
98 : StatsdStats::kDimensionKeySizeSoftLimit),
99 mDimensionHardLimit(StatsdStats::kAtomDimensionKeySizeLimitMap.find(pullTagId) !=
100 StatsdStats::kAtomDimensionKeySizeLimitMap.end()
101 ? StatsdStats::kAtomDimensionKeySizeLimitMap.at(pullTagId).second
102 : StatsdStats::kDimensionKeySizeHardLimit),
391 StatsdStats::getInstance().notePullDelay(mPullTagId, pullDelayNs); in pullAndMatchEventsLocked()
[all …]
DMetricsManager.cpp204 if (mAllowedUid.size() + mAllowedPkg.size() > StatsdStats::kMaxLogSourceCount) { in createAllLogSourcesFromConfig()
237 if (numPullPackages > StatsdStats::kMaxPullAtomPackages) { in createAllLogSourcesFromConfig()
248 if (mAllMetricProducers.size() > StatsdStats::kMaxMetricCountPerConfig || in verifyGuardrailsAndUpdateStatsdStats()
249 mAllConditionTrackers.size() > StatsdStats::kMaxConditionCountPerConfig || in verifyGuardrailsAndUpdateStatsdStats()
250 mAllAtomMatchingTrackers.size() > StatsdStats::kMaxMatcherCountPerConfig) { in verifyGuardrailsAndUpdateStatsdStats()
254 if (mAllAnomalyTrackers.size() > StatsdStats::kMaxAlertCountPerConfig) { in verifyGuardrailsAndUpdateStatsdStats()
259 StatsdStats::getInstance().noteConfigReceived( in verifyGuardrailsAndUpdateStatsdStats()
661 StatsdStats::getInstance().noteMatcherMatched(mConfigKey, in onLogEvent()
714 StatsdStats::getInstance().noteActiveStatusChanged(mConfigKey, in loadActiveConfig()
DCountMetricProducer.cpp294 StatsdStats::getInstance().noteBucketDropped(mMetricId); in dropDataLocked()
310 if (mCurrentSlicedCounter->size() > StatsdStats::kDimensionKeySizeSoftLimit - 1) { in hitGuardRailLocked()
312 StatsdStats::getInstance().noteMetricDimensionSize(mConfigKey, mMetricId, newTupleCount); in hitGuardRailLocked()
314 if (newTupleCount > StatsdStats::kDimensionKeySizeHardLimit) { in hitGuardRailLocked()
317 StatsdStats::getInstance().noteHardDimensionLimitReached(mMetricId); in hitGuardRailLocked()
445 StatsdStats::getInstance().noteBucketCount(mMetricId); in flushCurrentBucketLocked()
DDurationMetricProducer.cpp479 StatsdStats::getInstance().noteBucketDropped(mMetricId); in dropDataLocked()
600 StatsdStats::getInstance().noteBucketCount(mMetricId); in flushCurrentBucketLocked()
623 if (mCurrentSlicedDurationTrackerMap.size() > StatsdStats::kDimensionKeySizeSoftLimit - 1) { in hitGuardRailLocked()
625 StatsdStats::getInstance().noteMetricDimensionSize( in hitGuardRailLocked()
628 if (newTupleCount > StatsdStats::kDimensionKeySizeHardLimit) { in hitGuardRailLocked()
631 StatsdStats::getInstance().noteHardDimensionLimitReached(mMetricId); in hitGuardRailLocked()
DEventMetricProducer.cpp130 StatsdStats::getInstance().noteBucketDropped(mMetricId); in dropDataLocked()
/packages/modules/StatsD/statsd/src/packages/
DUidMap.cpp148 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 …]
/packages/modules/StatsD/statsd/src/
Dstats_log_util.h85 void writePullerStatsToStream(const std::pair<int, StatsdStats::PulledAtomStats>& pair,
89 void writeAtomMetricStatsToStream(const std::pair<int64_t, StatsdStats::AtomMetricStats> &pair,
112 return atomId >= StatsdStats::kVendorPulledAtomStartTag && atomId < StatsdStats::kMaxAtomTag; in isVendorPulledAtom()
116 return atomId >= StatsdStats::kPullAtomStartTag && atomId < StatsdStats::kVendorAtomStartTag; in isPulledAtom()
DStatsLogProcessor.cpp394 StatsdStats::getInstance().noteAtomLogged(atomId, eventElapsedTimeNs / NS_PER_SEC); in OnLogEvent()
396 StatsdStats::getInstance().noteAtomError(atomId); in OnLogEvent()
447 if (curTimeSec - mLastPullerCacheClearTimeSec > StatsdStats::kPullerCacheClearIntervalSec) { in OnLogEvent()
476 StatsdStats::getInstance().noteActiveStatusChanged(pair.first, isCurActive); in OnLogEvent()
487 StatsdStats::kMinActivationBroadcastPeriodNs) { in OnLogEvent()
488 StatsdStats::getInstance().noteActivationBroadcastGuardrailHit(uid); in OnLogEvent()
652 StatsdStats::getInstance().noteMetricsReportSent(key, proto.size()); in onDumpReport()
724 StatsdStats::getInstance().noteConfigReset(key); in resetConfigsLocked()
757 StatsdStats::getInstance().noteConfigRemoved(key); in OnConfigRemoved()
783 if (elapsedRealtimeNs - lastCheckTime->second < StatsdStats::kMinByteSizeCheckPeriodNs) { in flushIfNecessaryLocked()
[all …]
DStatsService.cpp96 StatsdStats::getInstance().noteRegisteredAnomalyAlarmChanged(); in StatsService()
100 StatsdStats::getInstance().noteRegisteredAnomalyAlarmChanged(); in __anon55b448e80202()
107 StatsdStats::getInstance().noteRegisteredPeriodicAlarmChanged(); in __anon55b448e80302()
113 StatsdStats::getInstance().noteRegisteredPeriodicAlarmChanged(); in __anon55b448e80402()
248 StatsdStats::getInstance().dumpStats(&data, false); // does not reset statsdStats. in dumpStatsdStats()
253 StatsdStats::getInstance().dumpStats(out); in dumpStatsdStats()
713 StatsdStats& statsdStats = StatsdStats::getInstance(); in cmd_print_stats()
1101 StatsdStats::getInstance().dumpStats(output, false); // Don't reset the counters. in getMetadata()
1291 StatsdStats::getInstance().noteSystemServerRestart(getWallClockSec()); in statsCompanionServiceDiedImpl()
Dstats_log_util.cpp472 void writePullerStatsToStream(const std::pair<int, StatsdStats::PulledAtomStats>& pair, in writePullerStatsToStream()
521 void writeAtomMetricStatsToStream(const std::pair<int64_t, StatsdStats::AtomMetricStats> &pair, in writeAtomMetricStatsToStream()
583 (event.GetTagId() >= StatsdStats::kTimestampTruncationStartTag && in truncateTimestampIfNecessary()
584 event.GetTagId() <= StatsdStats::kTimestampTruncationEndTag)) { in truncateTimestampIfNecessary()
/packages/modules/StatsD/statsd/src/external/
DStatsPuller.cpp49 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()
DStatsPullerManager.cpp73 StatsdStats::getInstance().notePullerCallbackRegistrationChanged(pullerKey.atomTag, in pullAtomCallbackDied()
113 StatsdStats::getInstance().notePullUidProviderNotFound(tagId); in PullLocked()
120 StatsdStats::getInstance().notePullUidProviderNotFound(tagId); in PullLocked()
137 StatsdStats::getInstance().notePullFailed(tagId); in PullLocked()
142 StatsdStats::getInstance().notePullerNotFound(tagId); in PullLocked()
347 StatsdStats::getInstance().notePullerCallbackRegistrationChanged(atomTag, /*registered=*/true); in RegisterPullAtomCallback()
363 StatsdStats::getInstance().notePullerCallbackRegistrationChanged(atomTag, in UnregisterPullAtomCallback()
DStatsPuller.h40 const int64_t pullTimeoutNs = StatsdStats::kPullMaxDelayNs,
74 const int64_t mPullTimeoutNs = StatsdStats::kPullMaxDelayNs;
DStatsCallbackPuller.cpp75 StatsdStats::getInstance().noteAtomError(event->GetTagId(), in PullInternal()
89 StatsdStats::getInstance().notePullBinderCallFailed(mTagId); in PullInternal()
/packages/modules/StatsD/statsd/src/storage/
DStorageManager.cpp705 if (fileAge > StatsdStats::kMaxAgeSecond || in trimToFit()
706 (output.mIsHistory && fileAge > StatsdStats::kMaxLocalHistoryAgeSecond)) { in trimToFit()
722 if (fileNames.size() > StatsdStats::kMaxFileNumber || in trimToFit()
723 totalFileSize > StatsdStats::kMaxFileSize) { in trimToFit()
728 while (fileNames.size() > 0 && (fileNames.size() > StatsdStats::kMaxFileNumber || in trimToFit()
729 totalFileSize > StatsdStats::kMaxFileSize)) { in trimToFit()
/packages/modules/StatsD/statsd/src/metrics/duration_helper/
DMaxDurationTracker.cpp46 if (mInfos.size() > StatsdStats::kDimensionKeySizeSoftLimit - 1) { in hitGuardRail()
48 StatsdStats::getInstance().noteMetricDimensionSize(mConfigKey, mTrackerId, newTupleCount); in hitGuardRail()
50 if (newTupleCount > StatsdStats::kDimensionKeySizeHardLimit) { in hitGuardRail()
DOringDurationTracker.cpp46 if (mConditionKeyMap.size() > StatsdStats::kDimensionKeySizeSoftLimit - 1) { in hitGuardRail()
48 StatsdStats::getInstance().noteMetricDimensionSize(mConfigKey, mTrackerId, newTupleCount); in hitGuardRail()
50 if (newTupleCount > StatsdStats::kDimensionKeySizeHardLimit) { in hitGuardRail()
/packages/modules/StatsD/statsd/src/socket/
DStatsSocketListener.cpp115 StatsdStats::getInstance().noteLogLost((int32_t)getWallClockSec(), dropped_count, in onDataAvailable()
133 StatsdStats::getInstance().noteEventQueueOverflow(oldestTimestamp); in onDataAvailable()
/packages/modules/StatsD/statsd/src/condition/
DSimpleConditionTracker.cpp171 if (mSlicedConditionState.size() > StatsdStats::kDimensionKeySizeSoftLimit - 1) { in hitGuardRail()
173StatsdStats::getInstance().noteConditionDimensionSize(mConfigKey, mConditionId, newTupleCount); in hitGuardRail()
175 if (newTupleCount > StatsdStats::kDimensionKeySizeHardLimit) { in hitGuardRail()
/packages/modules/StatsD/statsd/tests/
DStatsLogProcessor_test.cpp106 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()
/packages/modules/StatsD/statsd/src/anomaly/
DAnomalyTracker.cpp233 StatsdStats::getInstance().noteAnomalyDeclared(mConfigKey, mAlert.id()); in declareAnomaly()

12