RocksDB::Statistics - rocksdb::Statistics object
use RocksDB; my $db = RocksDB->new('/path/to/rocks.db', { enable_statistics => 1, }) my $stats = $db->get_statistics; print $stats->get_ticker_count('rocksdb.block.cache.miss'); my $data = $stats->histogram_data('rocksdb.write.raw.block.micros'); print $data->{average}; my $hashref = $db->to_hashref; print $stats->to_string;
RocksDB::Statistics is a rocksdb::Statistics object.
$stats->get_ticker_count($key) :Int
Returns the count.
$stats->histogram_data($key) :HashRef
Returns the HistogramData as HashRef.
{ median => 0, percentile95 => 0, percentile99 => 0, average => 0, standard_deviation => 0, }
$stats->to_hashref :HashRef
Returns a HashRef includes all tickers and histograms.
$stats->to_string :HashRef
String representation of the statistic object.
RocksDB
Jiro Nishiguchi <jiro@cpan.org>
To install RocksDB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RocksDB
CPAN shell
perl -MCPAN -e shell install RocksDB
For more information on module installation, please visit the detailed CPAN module installation guide.