jmt-blake3 0.1.2

Jellyfish Merkle Tree based on BLAKE3 hash function
Documentation
// Copyright (c) The Diem Core Contributors
// SPDX-License-Identifier: Apache-2.0

use once_cell::sync::Lazy;
use prometheus::{register_int_counter, IntCounter};

pub static DIEM_JELLYFISH_LEAF_ENCODED_BYTES: Lazy<IntCounter> = Lazy::new(|| {
    register_int_counter!(
        "diem_jellyfish_leaf_encoded_bytes",
        "Diem jellyfish leaf encoded bytes in total"
    )
    .unwrap()
});

pub static DIEM_JELLYFISH_INTERNAL_ENCODED_BYTES: Lazy<IntCounter> = Lazy::new(|| {
    register_int_counter!(
        "diem_jellyfish_internal_encoded_bytes",
        "Diem jellyfish total internal nodes encoded in bytes"
    )
    .unwrap()
});

pub static DIEM_JELLYFISH_STORAGE_READS: Lazy<IntCounter> = Lazy::new(|| {
    register_int_counter!(
        "diem_jellyfish_storage_reads",
        "Diem jellyfish reads from storage"
    )
    .unwrap()
});