class MetricAggregateRef

Defined at line 41 of file ../../third_party/cobalt/src/local_aggregation/local_aggregate_storage/local_aggregate_storage.h

MetricAggregateRef contains a pointer to the requested MetricAggregate, as well as

unique_lock that holds the mutex for the LocalAggregateStorage it came from.

Public Methods

void MetricAggregateRef (lib::MetricIdentifier metric, MetricAggregate * aggregate, LocalAggregateStorage * self, std::mutex & mutex)

Defined at line 43 of file ../../third_party/cobalt/src/local_aggregation/local_aggregate_storage/local_aggregate_storage.h

void MetricAggregateRef (lib::MetricIdentifier metric, MetricAggregate * aggregate, LocalAggregateStorage * self, std::unique_lock<std::mutex> mutex_lock)

Defined at line 51 of file ../../third_party/cobalt/src/local_aggregation/local_aggregate_storage/local_aggregate_storage.h

MetricAggregate * aggregate ()

Returns the pointer to the contained MetricAggregate

Defined at line 60 of file ../../third_party/cobalt/src/local_aggregation/local_aggregate_storage/local_aggregate_storage.h

void StoreFilteredSystemProfile (uint64_t system_profile_hash, const SystemProfile & filtered_system_profile)

Store the filtered SystemProfile in the aggregate storage.

This must be called for any system_profile_hash values that are added to the MetricAggregate

data, after adding them to the aggregate data, and before calling Save.

Defined at line 65 of file ../../third_party/cobalt/src/local_aggregation/local_aggregate_storage/local_aggregate_storage.h

lib::statusor::StatusOr<SystemProfile> RetrieveFilteredSystemProfile (uint64_t system_profile_hash)

Retrieve the filtered SystemProfile from the aggregate storage.

This can be called for any system_profile_hash values that are present in the MetricAggregate

data, as long as the unique_lock in the MetricAggregateRef is being held.

Defined at line 73 of file ../../third_party/cobalt/src/local_aggregation/local_aggregate_storage/local_aggregate_storage.h

Status Save ()

Triggers the source LocalAggregateStorage to save the given MetricAggregate.

Defined at line 79 of file ../../third_party/cobalt/src/local_aggregation/local_aggregate_storage/local_aggregate_storage.h

std::string DebugString ()

Defined at line 86 of file ../../third_party/cobalt/src/local_aggregation/local_aggregate_storage/local_aggregate_storage.h