libpressio 0.93.0
|
#include <metrics.h>
Public Member Functions | |
libpressio_metrics_plugin () | |
virtual | ~libpressio_metrics_plugin ()=default |
int | begin_check_options (struct pressio_options const *options) |
int | end_check_options (struct pressio_options const *options, int rc) |
int | begin_get_options () |
int | end_get_options (struct pressio_options const *ret) |
int | begin_get_documentation () |
int | end_get_documentation (struct pressio_options const &ret) |
int | begin_get_configuration () |
int | end_get_configuration (struct pressio_options const &ret) |
int | begin_set_options (struct pressio_options const &options) |
int | end_set_options (struct pressio_options const &options, int rc) |
int | begin_compress (const struct pressio_data *input, struct pressio_data const *output) |
int | end_compress (struct pressio_data const *input, pressio_data const *output, int rc) |
int | begin_decompress (struct pressio_data const *input, pressio_data const *output) |
int | end_decompress (struct pressio_data const *input, pressio_data const *output, int rc) |
int | begin_compress_many (compat::span< const pressio_data *const > const &inputs, compat::span< const pressio_data *const > const &outputs) |
int | end_compress_many (compat::span< const pressio_data *const > const &inputs, compat::span< const pressio_data *const > const &outputs, int rc) |
int | begin_decompress_many (compat::span< const pressio_data *const > const &inputs, compat::span< const pressio_data *const > const &outputs) |
int | end_decompress_many (compat::span< const pressio_data *const > const &inputs, compat::span< const pressio_data *const > const &outputs, int rc) |
virtual pressio_options | get_documentation_impl () const =0 |
virtual pressio_options | get_documentation () const final |
void | set_name (std::string const &new_name) override final |
virtual pressio_options | get_metrics_results (pressio_options const &options)=0 |
virtual std::unique_ptr< libpressio_metrics_plugin > | clone ()=0 |
Public Member Functions inherited from pressio_configurable | |
virtual const char * | prefix () const =0 |
std::string const & | get_name () const |
virtual void | set_name (std::string const &new_name) |
virtual void | set_name_impl (std::string const &new_name) |
virtual struct pressio_options | get_configuration () const |
virtual struct pressio_options | get_documentation () const |
virtual int | check_options (struct pressio_options const &) |
virtual struct pressio_options | get_options () const |
virtual int | set_options (struct pressio_options const &options) |
int | cast_options (pressio_options const &early_config, pressio_options const &config) |
Public Member Functions inherited from pressio_errorable | |
const char * | error_msg () const |
int | error_code () const |
Protected Member Functions | |
virtual int | begin_check_options_impl (struct pressio_options const *options) |
virtual int | end_check_options_impl (struct pressio_options const *options, int rc) |
virtual int | begin_get_options_impl () |
virtual int | end_get_options_impl (struct pressio_options const *ret) |
virtual int | begin_get_documentation_impl () |
virtual int | end_get_documentation_impl (struct pressio_options const &ret) |
virtual int | begin_get_configuration_impl () |
virtual int | end_get_configuration_impl (struct pressio_options const &ret) |
virtual int | begin_set_options_impl (struct pressio_options const &options) |
virtual int | end_set_options_impl (struct pressio_options const &options, int rc) |
virtual int | begin_compress_impl (const struct pressio_data *input, struct pressio_data const *output) |
virtual int | end_compress_impl (struct pressio_data const *input, pressio_data const *output, int rc) |
virtual int | begin_decompress_impl (struct pressio_data const *input, pressio_data const *output) |
virtual int | end_decompress_impl (struct pressio_data const *input, pressio_data const *output, int rc) |
virtual int | begin_compress_many_impl (compat::span< const pressio_data *const > const &inputs, compat::span< const pressio_data *const > const &outputs) |
virtual int | end_compress_many_impl (compat::span< const pressio_data *const > const &inputs, compat::span< const pressio_data *const > const &outputs, int rc) |
virtual int | begin_decompress_many_impl (compat::span< const pressio_data *const > const &inputs, compat::span< const pressio_data *const > const &outputs) |
virtual int | end_decompress_many_impl (compat::span< const pressio_data *const > const &inputs, compat::span< const pressio_data *const > const &outputs, int rc) |
Protected Member Functions inherited from pressio_configurable | |
template<class StringType > | |
void | set (pressio_options &options, StringType const &key, pressio_option const &value) const |
template<class StringType > | |
void | set_type (pressio_options &options, StringType const &key, pressio_option_type type) const |
template<class StringType , class PointerType > | |
enum pressio_options_key_status | get (pressio_options const &options, StringType &&key, PointerType value) const |
template<class StringType , class Wrapper , class... Args> | |
void | set_meta (pressio_options &options, StringType &&key, std::string const ¤t_id, Wrapper const ¤t_value, Args &&... args) const |
template<class StringType , class Wrapper , class... Args> | |
void | set_meta_docs (pressio_options &options, StringType &&key, std::string const &docstring, Wrapper const ¤t_value, Args &&... args) const |
template<class StringType , class Wrapper , class Registry , class... Args> | |
void | set_meta_configuration (pressio_options &options, StringType &&key, Registry const ®istry, Wrapper const ¤t_value) const |
template<class StringType , class Wrapper , class Registry , class... Args> | |
void | set_meta_many_configuration (pressio_options &options, StringType &&key, Registry const ®istry, std::vector< Wrapper > const ¤t_values) const |
template<class StringType , class Wrapper , class... Args> | |
void | set_meta_many_docs (pressio_options &options, StringType &&key, std::string const &docstring, std::vector< Wrapper > const ¤t_values, Args &&... args) const |
template<class StringType , class Wrapper , class... Args> | |
void | set_meta_many (pressio_options &options, StringType &&key, std::vector< std::string > const ¤t_ids, std::vector< Wrapper > const ¤t_values, Args &&... args) const |
template<class StringType , class Registry , class Wrapper > | |
pressio_options_key_status | get_meta (pressio_options const &options, StringType &&key, Registry const ®istry, std::string ¤t_id, Wrapper ¤t_value) |
template<class StringType , class Registry , class Wrapper > | |
pressio_options_key_status | get_meta_many (pressio_options const &options, StringType &&key, Registry const ®istry, std::vector< std::string > ¤t_ids, std::vector< Wrapper > ¤t_values) |
template<class T > | |
void | set_names_many (std::string const &name, std::vector< T > &plugins, std::vector< std::string > const &names) const |
std::string | get_metrics_key_name () const |
Protected Member Functions inherited from pressio_errorable | |
int | set_error (int code, std::string const &msg) |
void | clear_error () |
Additional Inherited Members | |
Static Protected Member Functions inherited from pressio_configurable | |
static pressio_thread_safety | get_threadsafe (pressio_configurable const &c) |
Protected Attributes inherited from pressio_configurable | |
std::string | name |
plugin to collect metrics about compressors
libpressio_metrics_plugin::libpressio_metrics_plugin | ( | ) |
default constructor
|
virtualdefault |
destructor for inheritance
int libpressio_metrics_plugin::begin_check_options | ( | struct pressio_options const * | options | ) |
called at the beginning of check_options
[in] | options | the value passed in to check_options |
|
protectedvirtual |
called at the beginning of check_options
[in] | options | the value passed in to check_options |
int libpressio_metrics_plugin::begin_compress | ( | const struct pressio_data * | input, |
struct pressio_data const * | output | ||
) |
called at the beginning of compress
[in] | input | the value passed in to compress |
[in] | output | the value passed in to compress |
|
protectedvirtual |
called at the beginning of compress
[in] | input | the value passed in to compress |
[in] | output | the value passed in to compress |
int libpressio_metrics_plugin::begin_compress_many | ( | compat::span< const pressio_data *const > const & | inputs, |
compat::span< const pressio_data *const > const & | outputs | ||
) |
called at the beginning of compress_many
|
protectedvirtual |
called at the beginning of compress_many
int libpressio_metrics_plugin::begin_decompress | ( | struct pressio_data const * | input, |
pressio_data const * | output | ||
) |
called at the beginning of decompress
[in] | input | the value passed in to decompress |
[in] | output | the value passed in to decompress |
|
protectedvirtual |
called at the beginning of decompress
[in] | input | the value passed in to decompress |
[in] | output | the value passed in to decompress |
int libpressio_metrics_plugin::begin_decompress_many | ( | compat::span< const pressio_data *const > const & | inputs, |
compat::span< const pressio_data *const > const & | outputs | ||
) |
called at the beginning of decompress_many
|
protectedvirtual |
called at the beginning of decompress_many
int libpressio_metrics_plugin::begin_get_configuration | ( | ) |
called at the beginning of get_configuration
|
protectedvirtual |
called at the beginning of get_configuration
int libpressio_metrics_plugin::begin_get_documentation | ( | ) |
called at the beginning of get_configuration
|
protectedvirtual |
called at the beginning of get_configuration
int libpressio_metrics_plugin::begin_get_options | ( | ) |
called at the beginning of get_options
|
protectedvirtual |
called at the beginning of get_options
int libpressio_metrics_plugin::begin_set_options | ( | struct pressio_options const & | options | ) |
called at the beginning of set_options
[in] | options | the value passed in to set_options |
|
protectedvirtual |
called at the beginning of set_options
[in] | options | the value passed in to set_options |
|
pure virtual |
int libpressio_metrics_plugin::end_check_options | ( | struct pressio_options const * | options, |
int | rc | ||
) |
called at the end of check_options
[in] | options | the value passed in to check_options |
[in] | rc | the return value from the underlying compressor check_options command |
|
protectedvirtual |
called at the end of check_options
[in] | options | the value passed in to check_options |
[in] | rc | the return value from the underlying compressor check_options command |
int libpressio_metrics_plugin::end_compress | ( | struct pressio_data const * | input, |
pressio_data const * | output, | ||
int | rc | ||
) |
called at the end of compress
[in] | input | the value passed in to compress |
[in] | output | the value passed in to compress |
[in] | rc | the return value from the underlying compressor compress command |
|
protectedvirtual |
called at the end of compress
[in] | input | the value passed in to compress |
[in] | output | the value passed in to compress |
[in] | rc | the return value from the underlying compressor compress command |
int libpressio_metrics_plugin::end_compress_many | ( | compat::span< const pressio_data *const > const & | inputs, |
compat::span< const pressio_data *const > const & | outputs, | ||
int | rc | ||
) |
called at the end of compress_many
|
protectedvirtual |
called at the end of compress_many
int libpressio_metrics_plugin::end_decompress | ( | struct pressio_data const * | input, |
pressio_data const * | output, | ||
int | rc | ||
) |
called at the end of decompress
[in] | input | the value passed in to decompress |
[in] | output | the value passed in to decompress |
[in] | rc | the return value from the underlying compressor decompress command |
|
protectedvirtual |
called at the end of decompress
[in] | input | the value passed in to decompress |
[in] | output | the value passed in to decompress |
[in] | rc | the return value from the underlying compressor decompress command |
int libpressio_metrics_plugin::end_decompress_many | ( | compat::span< const pressio_data *const > const & | inputs, |
compat::span< const pressio_data *const > const & | outputs, | ||
int | rc | ||
) |
called at the end of decompress_many
|
protectedvirtual |
called at the end of decompress_many
int libpressio_metrics_plugin::end_get_configuration | ( | struct pressio_options const & | ret | ) |
called at the end of get_configuration
[in] | ret | the return value from the underlying compressor get_options command |
|
protectedvirtual |
called at the end of get_configuration
[in] | ret | the return value from the underlying compressor get_options command |
int libpressio_metrics_plugin::end_get_documentation | ( | struct pressio_options const & | ret | ) |
called at the end of get_configuration
[in] | ret | the return value from the underlying compressor get_options command |
|
protectedvirtual |
called at the end of get_configuration
[in] | ret | the return value from the underlying compressor get_options command |
int libpressio_metrics_plugin::end_get_options | ( | struct pressio_options const * | ret | ) |
called at the end of get_options
[in] | ret | the return value from the underlying compressor get_options command |
|
protectedvirtual |
called at the end of get_options
[in] | ret | the return value from the underlying compressor get_options command |
int libpressio_metrics_plugin::end_set_options | ( | struct pressio_options const & | options, |
int | rc | ||
) |
called at the end of set_options
[in] | options | the value passed in to set_options |
[in] | rc | the return value from the underlying compressor set_options command |
|
protectedvirtual |
called at the end of set_options
[in] | options | the value passed in to set_options |
[in] | rc | the return value from the underlying compressor set_options command |
|
finalvirtual |
get documentation for the metrics module
Reimplemented from pressio_configurable.
|
pure virtual |
called by metrics implementations to retrieve documentation
|
pure virtual |
options | the metrics from the compressor plugin |
|
finaloverridevirtual |
prohibit overriding set_name from child classes, override set_name_impl instead
Reimplemented from pressio_configurable.