MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / increment_usage_count

Function increment_usage_count

src/dashboard/analytics_api.rs:388–392  ·  view source on GitHub ↗
(counts: &mut BTreeMap<(String, String), i64>, kind: &str, category: &str)

Source from the content-addressed store, hash-verified

386}
387
388fn increment_usage_count(counts: &mut BTreeMap<(String, String), i64>, kind: &str, category: &str) {
389 *counts
390 .entry((kind.to_string(), category.to_string()))
391 .or_default() += 1;
392}
393
394async fn usage_summary(
395 conn: Option<&libsql::Connection>,

Callers 2

record_fallback_usageFunction · 0.85
record_usage_countFunction · 0.85

Calls 1

entryMethod · 0.80

Tested by

no test coverage detected