mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2025-02-06 20:25:19 +00:00
![0g-peterzhb](/assets/img/avatar_default.png)
Some checks are pending
abi-consistent-check / build-and-compare (push) Waiting to run
code-coverage / unittest-cov (push) Waiting to run
rust / check (push) Waiting to run
rust / test (push) Waiting to run
rust / lints (push) Waiting to run
functional-test / test (push) Waiting to run
* add detailed metrics for storage layer
12 lines
572 B
Rust
12 lines
572 B
Rust
use std::sync::Arc;
|
|
|
|
use metrics::{register_timer, Timer};
|
|
|
|
lazy_static::lazy_static! {
|
|
pub static ref APPEND: Arc<dyn Timer> = register_timer("append_merkle_append");
|
|
pub static ref APPEND_LIST: Arc<dyn Timer> = register_timer("append_merkle_append_list");
|
|
pub static ref APPEND_SUBTREE: Arc<dyn Timer> = register_timer("append_merkle_append_subtree");
|
|
pub static ref APPEND_SUBTREE_LIST: Arc<dyn Timer> = register_timer("append_merkle_append_subtree_list");
|
|
pub static ref UPDATE_LAST: Arc<dyn Timer> = register_timer("append_merkle_update_last");
|
|
}
|