Home
last modified time | relevance | path

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

12

/frameworks/base/cmds/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);
/frameworks/base/cmds/statsd/src/
Dstats_log_util.h81 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()
DStatsLogProcessor.cpp394 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 …]
DStatsService.cpp97 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()
Dstats_log_util.cpp465 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/
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()
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()
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()
/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()
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/
DGaugeMetricProducer.cpp91 : 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 …]
DValueMetricProducer.cpp98 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 …]
DMetricsManager.cpp106 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()
DCountMetricProducer.cpp247 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()
DDurationMetricProducer.cpp343 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()
DEventMetricProducer.cpp86 StatsdStats::getInstance().noteBucketDropped(mMetricId); in dropDataLocked()
/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/socket/
DStatsSocketListener.cpp115 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/
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()
/frameworks/base/cmds/statsd/src/condition/
DSimpleConditionTracker.cpp148 if (mSlicedConditionState.size() > StatsdStats::kDimensionKeySizeSoftLimit - 1) { in hitGuardRail()
150StatsdStats::getInstance().noteConditionDimensionSize(mConfigKey, mConditionId, newTupleCount); in hitGuardRail()
152 if (newTupleCount > StatsdStats::kDimensionKeySizeHardLimit) { in hitGuardRail()
/frameworks/base/cmds/statsd/src/storage/
DStorageManager.cpp706 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/
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()
/frameworks/base/cmds/statsd/src/anomaly/
DAnomalyTracker.cpp237 StatsdStats::getInstance().noteAnomalyDeclared(mConfigKey, mAlert.id()); in declareAnomaly()

12