Kagome
Polkadot Runtime Engine in C++17
|
#include <metrics_watcher.hpp>
Public Member Functions | |
MetricsWatcher (std::shared_ptr< application::AppStateManager > app_state_manager, const application::AppConfiguration &app_config, std::shared_ptr< application::ChainSpec > chain_spec) | |
bool | prepare () |
bool | start () |
void | stop () |
Private Member Functions | |
outcome::result< uintmax_t > | measure_storage_size () |
Private Attributes | |
boost::filesystem::path | storage_path_ |
volatile bool | shutdown_requested_ = false |
std::thread | thread_ |
metrics::RegistryPtr | metrics_registry_ |
metrics::Gauge * | metric_storage_size_ |
Definition at line 19 of file metrics_watcher.hpp.
kagome::metrics::MetricsWatcher::MetricsWatcher | ( | std::shared_ptr< application::AppStateManager > | app_state_manager, |
const application::AppConfiguration & | app_config, | ||
std::shared_ptr< application::ChainSpec > | chain_spec | ||
) |
Definition at line 15 of file metrics_watcher.cpp.
|
private |
Definition at line 63 of file metrics_watcher.cpp.
bool kagome::metrics::MetricsWatcher::prepare | ( | ) |
Definition at line 33 of file metrics_watcher.cpp.
bool kagome::metrics::MetricsWatcher::start | ( | ) |
Definition at line 37 of file metrics_watcher.cpp.
void kagome::metrics::MetricsWatcher::stop | ( | ) |
Definition at line 56 of file metrics_watcher.cpp.
|
private |
Definition at line 40 of file metrics_watcher.hpp.
|
private |
Definition at line 39 of file metrics_watcher.hpp.
|
private |
Definition at line 35 of file metrics_watcher.hpp.
|
private |
Definition at line 33 of file metrics_watcher.hpp.
|
private |
Definition at line 36 of file metrics_watcher.hpp.