class NoOpInternalMetrics
Defined at line 138 of file ../../third_party/cobalt/src/logger/internal_metrics.h
NoOpInternalMetrics is to be used when the LoggerInterface* provided to the
Logger constructor is nullptr. It stubs out all of the calls in the
InternalMetrics interface, allowing code to safely make these calls even if
no LoggerInterface* was provided.
Public Methods
void LoggerCalled (LoggerCallsMadeMigratedMetricDimensionLoggerMethod method, const Project & project)
Defined at line 140 of file ../../third_party/cobalt/src/logger/internal_metrics.h
void BytesUploaded (BytesUploadedMetricDimensionStatus upload_status, size_t byte_count)
Defined at line 143 of file ../../third_party/cobalt/src/logger/internal_metrics.h
void BytesUploaded (PerProjectBytesUploadedMigratedMetricDimensionStatusupload_status,size_tbyte_count,const lib::ProjectIdentifier &project_identifier)
Defined at line 146 of file ../../third_party/cobalt/src/logger/internal_metrics.h
void BytesStored (PerProjectBytesStoredMigratedMetricDimensionStatusupload_status,size_tbyte_count,const lib::ProjectIdentifier &project_identifier)
Defined at line 150 of file ../../third_party/cobalt/src/logger/internal_metrics.h
void InaccurateClockEventsCached (int64_t event_count)
Defined at line 153 of file ../../third_party/cobalt/src/logger/internal_metrics.h
void InaccurateClockEventsDropped (int64_t event_count)
Defined at line 155 of file ../../third_party/cobalt/src/logger/internal_metrics.h
void SetSoftwareDistributionInfoCalled (SetSoftwareDistributionInfoCalledMigratedEventCodes event_codes)
Defined at line 157 of file ../../third_party/cobalt/src/logger/internal_metrics.h
void TrackDiskUsage (StorageClassstorage_class,size_tbytes,int64_tmax_bytes)
TODO(https://fxbug.dev/278930401): NOLINTNEXTLINE(bugprone-easily-swappable-parameters)
Defined at line 161 of file ../../third_party/cobalt/src/logger/internal_metrics.h
void LocalAggregationQuotaEvent (const lib::ProjectIdentifier & project_identifier, int event_type)
Defined at line 163 of file ../../third_party/cobalt/src/logger/internal_metrics.h
bool IsRealImpl ()
Defined at line 171 of file ../../third_party/cobalt/src/logger/internal_metrics.h
void ~NoOpInternalMetrics ()
Defined at line 173 of file ../../third_party/cobalt/src/logger/internal_metrics.h
Protected Methods
void Flush ()
Defined at line 167 of file ../../third_party/cobalt/src/logger/internal_metrics.h
void IncrementFlushers ()
Defined at line 168 of file ../../third_party/cobalt/src/logger/internal_metrics.h