Skip to content

Commit

Permalink
Use instead of
Browse files Browse the repository at this point in the history
  • Loading branch information
mildbyte committed Apr 24, 2024
1 parent fa095cf commit 2755bb8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/memory_pool.rs
Expand Up @@ -5,7 +5,7 @@
use std::sync::Arc;

use datafusion::execution::memory_pool::{MemoryConsumer, MemoryPool, MemoryReservation};
use metrics::{counter, describe_gauge, gauge, Gauge};
use metrics::{counter, describe_counter, describe_gauge, gauge, Gauge};

const ALLOCATIONS: &str = "seafowl_datafusion_memory_pool_allocated_bytes_total";
const DEALLOCATIONS: &str = "seafowl_datafusion_memory_pool_freed_bytes_total";
Expand All @@ -17,11 +17,11 @@ struct Metrics {

impl Metrics {
pub fn new() -> Self {
describe_gauge!(
describe_counter!(
ALLOCATIONS,
"Memory allocated in DataFusion's managed memory pool"
);
describe_gauge!(
describe_counter!(
DEALLOCATIONS,
"Memory freed in DataFusion's managed memory pool"
);
Expand Down

0 comments on commit 2755bb8

Please sign in to comment.