Home
last modified time | relevance | path

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

12

/frameworks/base/cmds/statsd/src/guardrail/
DStatsdStats.cpp115 const std::map<int, std::pair<size_t, size_t>> StatsdStats::kAtomDimensionKeySizeLimitMap = {
121 StatsdStats::StatsdStats() { in StatsdStats() function in android::os::statsd::StatsdStats
126 StatsdStats& StatsdStats::getInstance() { in getInstance()
127 static StatsdStats statsInstance; in getInstance()
131 void StatsdStats::addToIceBoxLocked(shared_ptr<ConfigStats>& stats) { in addToIceBoxLocked()
139 void StatsdStats::noteConfigReceived( in noteConfigReceived()
170 void StatsdStats::noteConfigRemovedInternalLocked(const ConfigKey& key) { in noteConfigRemovedInternalLocked()
180 void StatsdStats::noteConfigRemoved(const ConfigKey& key) { in noteConfigRemoved()
185 void StatsdStats::noteConfigResetInternalLocked(const ConfigKey& key) { in noteConfigResetInternalLocked()
192 void StatsdStats::noteConfigReset(const ConfigKey& key) { in noteConfigReset()
[all …]
DStatsdStats.h94 class StatsdStats {
96 static StatsdStats& getInstance();
97 ~StatsdStats(){}; in ~StatsdStats()
508 StatsdStats();
609 StatsdStats::AtomMetricStats& getAtomMetricStats(int64_t metricId);
/frameworks/base/cmds/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()
288 StatsdStats stats; in TEST()
328 StatsdStats stats; in TEST()
361 StatsdStats stats; in TEST()
375 StatsdStats stats; in TEST()
[all …]
/frameworks/base/cmds/statsd/src/external/
DStatsPuller.cpp42 StatsdStats::getInstance().notePull(mTagId); in Pull()
48 StatsdStats::getInstance().notePullFromCache(mTagId); in Pull()
54 StatsdStats::getInstance().updateMinPullIntervalSec( in Pull()
64 StatsdStats::getInstance().notePullTime(mTagId, pullDurationNs); in Pull()
71 StatsdStats::getInstance().notePullTimeout(mTagId); in Pull()
DStatsCompanionServicePuller.cpp58 StatsdStats::getInstance().noteStatsCompanionPullFailed(mTagId); in PullInternal()
60 StatsdStats::getInstance().noteStatsCompanionPullBinderTransactionFailed(mTagId); in PullInternal()
DStatsPullerManager.cpp284 StatsdStats::getInstance().notePullFailed(tagId); in Pull()
407 StatsdStats::getInstance().notePullDelay( in OnAlarmFired()
473 StatsdStats::getInstance().notePullerCallbackRegistrationChanged(atomTag, /*registered=*/true); in RegisterPullerCallback()
483 StatsdStats::getInstance().notePullerCallbackRegistrationChanged(atomTag, /*registered=*/false); in UnregisterPullerCallback()
DStatsPullerManager.h51 int64_t pullTimeoutNs = StatsdStats::kPullMaxDelayNs;
/frameworks/base/cmds/statsd/src/metrics/
DValueMetricProducer.cpp88 mDimensionSoftLimit(StatsdStats::kAtomDimensionKeySizeLimitMap.find(pullTagId) != in ValueMetricProducer()
89 StatsdStats::kAtomDimensionKeySizeLimitMap.end() in ValueMetricProducer()
90 ? StatsdStats::kAtomDimensionKeySizeLimitMap.at(pullTagId).first in ValueMetricProducer()
91 : StatsdStats::kDimensionKeySizeSoftLimit), in ValueMetricProducer()
92 mDimensionHardLimit(StatsdStats::kAtomDimensionKeySizeLimitMap.find(pullTagId) != in ValueMetricProducer()
93 StatsdStats::kAtomDimensionKeySizeLimitMap.end() in ValueMetricProducer()
94 ? StatsdStats::kAtomDimensionKeySizeLimitMap.at(pullTagId).second in ValueMetricProducer()
95 : StatsdStats::kDimensionKeySizeHardLimit), in ValueMetricProducer()
105 : StatsdStats::kPullMaxDelayNs), in ValueMetricProducer()
185 StatsdStats::getInstance().noteBucketDropped(mMetricId); in dropDataLocked()
[all …]
DGaugeMetricProducer.cpp85 : StatsdStats::kPullMaxDelayNs), in GaugeMetricProducer()
86 mDimensionSoftLimit(StatsdStats::kAtomDimensionKeySizeLimitMap.find(pullTagId) != in GaugeMetricProducer()
87 StatsdStats::kAtomDimensionKeySizeLimitMap.end() in GaugeMetricProducer()
88 ? StatsdStats::kAtomDimensionKeySizeLimitMap.at(pullTagId).first in GaugeMetricProducer()
89 : StatsdStats::kDimensionKeySizeSoftLimit), in GaugeMetricProducer()
90 mDimensionHardLimit(StatsdStats::kAtomDimensionKeySizeLimitMap.find(pullTagId) != in GaugeMetricProducer()
91 StatsdStats::kAtomDimensionKeySizeLimitMap.end() in GaugeMetricProducer()
92 ? StatsdStats::kAtomDimensionKeySizeLimitMap.at(pullTagId).second in GaugeMetricProducer()
93 : StatsdStats::kDimensionKeySizeHardLimit), in GaugeMetricProducer()
345 StatsdStats::getInstance().notePullExceedMaxDelay(mPullTagId); in pullAndMatchEventsLocked()
[all …]
DMetricsManager.cpp104 if (mAllowedUid.size() + mAllowedPkg.size() > StatsdStats::kMaxLogSourceCount) { in MetricsManager()
118 if (mAllMetricProducers.size() > StatsdStats::kMaxMetricCountPerConfig || in MetricsManager()
119 mAllConditionTrackers.size() > StatsdStats::kMaxConditionCountPerConfig || in MetricsManager()
120 mAllAtomMatchers.size() > StatsdStats::kMaxMatcherCountPerConfig) { in MetricsManager()
124 if (mAllAnomalyTrackers.size() > StatsdStats::kMaxAlertCountPerConfig) { in MetricsManager()
139 StatsdStats::getInstance().noteConfigReceived( in MetricsManager()
483 StatsdStats::getInstance().noteMatcherMatched(mConfigKey, in onLogEvent()
536 StatsdStats::getInstance().noteActiveStatusChanged(mConfigKey, in loadActiveConfig()
DCountMetricProducer.cpp246 StatsdStats::getInstance().noteBucketDropped(mMetricId); in dropDataLocked()
262 if (mCurrentSlicedCounter->size() > StatsdStats::kDimensionKeySizeSoftLimit - 1) { in hitGuardRailLocked()
264 StatsdStats::getInstance().noteMetricDimensionSize(mConfigKey, mMetricId, newTupleCount); in hitGuardRailLocked()
266 if (newTupleCount > StatsdStats::kDimensionKeySizeHardLimit) { in hitGuardRailLocked()
375 StatsdStats::getInstance().noteBucketCount(mMetricId); in flushCurrentBucketLocked()
DDurationMetricProducer.cpp491 StatsdStats::getInstance().noteBucketDropped(mMetricId); in dropDataLocked()
632 StatsdStats::getInstance().noteBucketCount(mMetricId); in flushCurrentBucketLocked()
661 if (whatIt->second.size() > StatsdStats::kDimensionKeySizeSoftLimit - 1) { in hitGuardRailLocked()
663 StatsdStats::getInstance().noteMetricDimensionInConditionSize( in hitGuardRailLocked()
666 if (newTupleCount > StatsdStats::kDimensionKeySizeHardLimit) { in hitGuardRailLocked()
674 if (mCurrentSlicedDurationTrackerMap.size() > StatsdStats::kDimensionKeySizeSoftLimit - 1) { in hitGuardRailLocked()
676 StatsdStats::getInstance().noteMetricDimensionSize( in hitGuardRailLocked()
679 if (newTupleCount > StatsdStats::kDimensionKeySizeHardLimit) { in hitGuardRailLocked()
DEventMetricProducer.cpp80 StatsdStats::getInstance().noteBucketDropped(mMetricId); in dropDataLocked()
/frameworks/base/cmds/statsd/src/
Dstats_log_util.h73 void writePullerStatsToStream(const std::pair<int, StatsdStats::PulledAtomStats>& pair,
77 void writeAtomMetricStatsToStream(const std::pair<int64_t, StatsdStats::AtomMetricStats> &pair,
97 return atomId >= StatsdStats::kVendorPulledAtomStartTag && atomId < StatsdStats::kMaxAtomTag; in isVendorPulledAtom()
DStatsLogProcessor.cpp208 StatsdStats::getInstance().noteAtomLogged( in OnLogEvent()
222 if (curTimeSec - mLastPullerCacheClearTimeSec > StatsdStats::kPullerCacheClearIntervalSec) { in OnLogEvent()
257 StatsdStats::getInstance().noteActiveStatusChanged(pair.first, isCurActive); in OnLogEvent()
267 StatsdStats::kMinActivationBroadcastPeriodNs) { in OnLogEvent()
268 StatsdStats::getInstance().noteActivationBroadcastGuardrailHit(uid); in OnLogEvent()
415 StatsdStats::getInstance().noteMetricsReportSent(key, proto.size()); in onDumpReport()
486 StatsdStats::getInstance().noteConfigReset(key); in resetConfigsLocked()
519 StatsdStats::getInstance().noteConfigRemoved(key); in OnConfigRemoved()
544 if (timestampNs - lastCheckTime->second < StatsdStats::kMinByteSizeCheckPeriodNs) { in flushIfNecessaryLocked()
554 StatsdStats::kMaxMetricsBytesPerConfig) { // Too late. We need to start clearing data. in flushIfNecessaryLocked()
[all …]
DStatsService.cpp135 StatsdStats::getInstance().noteRegisteredAnomalyAlarmChanged(); in StatsService()
141 StatsdStats::getInstance().noteRegisteredAnomalyAlarmChanged(); in __anon24fc2e590202()
149 StatsdStats::getInstance().noteRegisteredPeriodicAlarmChanged(); in __anon24fc2e590302()
155 StatsdStats::getInstance().noteRegisteredPeriodicAlarmChanged(); in __anon24fc2e590402()
318 StatsdStats::getInstance().dumpStats(&data, false); // does not reset statsdStats. in dumpStatsdStats()
323 StatsdStats::getInstance().dumpStats(out); in dumpStatsdStats()
775 StatsdStats& statsdStats = StatsdStats::getInstance(); in cmd_print_stats()
1152 StatsdStats::getInstance().dumpStats(output, false); // Don't reset the counters. in getMetadata()
1480 StatsdStats::getInstance().noteSystemServerRestart(getWallClockSec()); in binderDied()
Dstats_log_util.cpp452 void writePullerStatsToStream(const std::pair<int, StatsdStats::PulledAtomStats>& pair, in writePullerStatsToStream()
490 void writeAtomMetricStatsToStream(const std::pair<int64_t, StatsdStats::AtomMetricStats> &pair, in writeAtomMetricStatsToStream()
547 (atomId >= StatsdStats::kTimestampTruncationStartTag && in truncateTimestampIfNecessary()
548 atomId <= StatsdStats::kTimestampTruncationEndTag)) { in truncateTimestampIfNecessary()
/frameworks/base/cmds/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 …]
/frameworks/base/cmds/statsd/src/condition/
DStateTracker.cpp104 if (mSlicedState.size() > StatsdStats::kDimensionKeySizeSoftLimit - 1) { in hitGuardRail()
106StatsdStats::getInstance().noteConditionDimensionSize(mConfigKey, mConditionId, newTupleCount); in hitGuardRail()
108 if (newTupleCount > StatsdStats::kDimensionKeySizeHardLimit) { in hitGuardRail()
DSimpleConditionTracker.cpp155 if (mSlicedConditionState.size() > StatsdStats::kDimensionKeySizeSoftLimit - 1) { in hitGuardRail()
157StatsdStats::getInstance().noteConditionDimensionSize(mConfigKey, mConditionId, newTupleCount); in hitGuardRail()
159 if (newTupleCount > StatsdStats::kDimensionKeySizeHardLimit) { in hitGuardRail()
/frameworks/base/cmds/statsd/src/socket/
DStatsSocketListener.cpp117 StatsdStats::getInstance().noteLogLost((int32_t)getWallClockSec(), dropped_count, in onDataAvailable()
136 StatsdStats::getInstance().noteEventQueueOverflow(oldestTimestamp); in onDataAvailable()
/frameworks/base/cmds/statsd/src/storage/
DStorageManager.cpp598 if (fileAge > StatsdStats::kMaxAgeSecond || in trimToFit()
599 (output.mIsHistory && fileAge > StatsdStats::kMaxLocalHistoryAgeSecond)) { in trimToFit()
615 if (fileNames.size() > StatsdStats::kMaxFileNumber || in trimToFit()
616 totalFileSize > StatsdStats::kMaxFileSize) { in trimToFit()
621 while (fileNames.size() > 0 && (fileNames.size() > StatsdStats::kMaxFileNumber || in trimToFit()
622 totalFileSize > StatsdStats::kMaxFileSize)) { in trimToFit()
/frameworks/base/cmds/statsd/src/metrics/duration_helper/
DMaxDurationTracker.cpp69 if (mInfos.size() > StatsdStats::kDimensionKeySizeSoftLimit - 1) { in hitGuardRail()
71 StatsdStats::getInstance().noteMetricDimensionSize(mConfigKey, mTrackerId, newTupleCount); in hitGuardRail()
73 if (newTupleCount > StatsdStats::kDimensionKeySizeHardLimit) { in hitGuardRail()
DOringDurationTracker.cpp58 if (mConditionKeyMap.size() > StatsdStats::kDimensionKeySizeSoftLimit - 1) { in hitGuardRail()
60 StatsdStats::getInstance().noteMetricDimensionSize(mConfigKey, mTrackerId, newTupleCount); in hitGuardRail()
62 if (newTupleCount > StatsdStats::kDimensionKeySizeHardLimit) { in hitGuardRail()
/frameworks/base/cmds/statsd/src/anomaly/
DAnomalyTracker.cpp235 StatsdStats::getInstance().noteAnomalyDeclared(mConfigKey, mAlert.id()); in declareAnomaly()

12