MCPcopy Create free account
hub / github.com/apache/datafusion / from

Method from

datafusion/execution/src/memory_pool/pool.rs:370–377  ·  view source on GitHub ↗
(tracked: &TrackedConsumer)

Source from the content-addressed store, hash-verified

368
369impl From<&TrackedConsumer> for MemoryConsumerMetrics {
370 fn from(tracked: &TrackedConsumer) -> Self {
371 Self {
372 name: tracked.name.clone(),
373 can_spill: tracked.can_spill,
374 reserved: tracked.reserved(),
375 peak: tracked.peak(),
376 }
377 }
378}
379
380/// A [`MemoryPool`] that tracks the consumers that have

Callers

nothing calls this directly

Calls 3

reservedMethod · 0.80
peakMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected