MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / retrieved

Function retrieved

atomic-repository/src/query_diagnostics.rs:53–61  ·  view source on GitHub ↗
(bytes: usize)

Source from the content-addressed store, hash-verified

51}
52
53pub(crate) fn retrieved(bytes: usize) {
54 RESOURCES.with(|slot| {
55 if let Some(stats) = slot.borrow_mut().as_mut() {
56 stats.files_retrieved += 1;
57 stats.bytes_retained += bytes;
58 stats.output_buffer_high_water = stats.output_buffer_high_water.max(bytes);
59 }
60 });
61}
62
63pub(crate) fn retained(count: usize) {
64 RESOURCES.with(|slot| {

Callers 1

search_content_planMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected