diem_jellyfish_merkle/
metrics.rs1use diem_metrics::{register_int_counter, IntCounter};
9use once_cell::sync::Lazy;
10
11pub static DIEM_JELLYFISH_LEAF_ENCODED_BYTES: Lazy<IntCounter> =
12 Lazy::new(|| {
13 register_int_counter!(
14 "diem_jellyfish_leaf_encoded_bytes",
15 "Diem jellyfish leaf encoded bytes in total"
16 )
17 .unwrap()
18 });
19
20pub static DIEM_JELLYFISH_INTERNAL_ENCODED_BYTES: Lazy<IntCounter> =
21 Lazy::new(|| {
22 register_int_counter!(
23 "diem_jellyfish_internal_encoded_bytes",
24 "Diem jellyfish total internal nodes encoded in bytes"
25 )
26 .unwrap()
27 });
28
29pub static DIEM_JELLYFISH_STORAGE_READS: Lazy<IntCounter> = Lazy::new(|| {
30 register_int_counter!(
31 "diem_jellyfish_storage_reads",
32 "Diem jellyfish reads from storage"
33 )
34 .unwrap()
35});