-
#include "tensorstore/tensorstore.h"
-
template <typename StoreResult>
Future<ArrayStorageStatistics> tensorstore::GetStorageStatistics(
const StoreResult& store,
GetArrayStorageStatisticsOptions options); -
template <typename StoreResult, typename... Option>
requires IsCompatibleOptionSequence<
GetArrayStorageStatisticsOptions,
Option...>
Future<ArrayStorageStatistics>
tensorstore::GetStorageStatistics(const StoreResult& store,
Option&&... option); Retrieves statistics of the data stored within the given array region.
Any number of
ArrayStorageStatistics::Mask
values may be specified as options.Only the specific information indicated by the options will be computed. If no query options are specified, no information will be computed.
Example usage:
TENSORSTORE_ASSIGN_OR_RETURN( auto stats, GetStorageStatistics( store | tensorstore::Dims(0, 2).SizedInterval({0, 5}, {100, 500}), tensorstore::ArrayStorageStatistics::query_not_stored) .result()); TENSORSTORE_ASSIGN_OR_RETURN( auto stats, GetStorageStatistics( store | tensorstore::Dims(0, 2).SizedInterval({0, 5}, {100, 500}), tensorstore::ArrayStorageStatistics::query_not_stored, tensorstore::ArrayStorageStatistics::query_fully_stored) .result());
- Parameters:¶
- const StoreResult &store¶
The
TensorStore
to query. May beResult
-wrapped.- Option&&... option
Any option compatible with
GetArrayStorageStatisticsOptions
.- GetArrayStorageStatisticsOptions options¶
Specifies which statistics to compute.
Related Types¶
- struct tensorstore::ArrayStorageStatistics;
Response from a storage statistics query.
- struct tensorstore::GetArrayStorageStatisticsOptions;
Specifies options for computing array storage statistics.