MCPcopy Index your code
hub / github.com/coder/mux / recordUsage

Method recordUsage

src/node/services/memoryService.ts:485–498  ·  view source on GitHub ↗
(
    ctx: MemoryScopeContext,
    scope: MemoryScope,
    relPath: string,
    options: { write: boolean }
  )

Source from the content-addressed store, hash-verified

483 }
484
485 private async recordUsage(
486 ctx: MemoryScopeContext,
487 scope: MemoryScope,
488 relPath: string,
489 options: { write: boolean }
490 ): Promise<void> {
491 try {
492 const key = this.logicalKeyFor(ctx, scope, relPath);
493 if (key === null) return;
494 await this.metaService.recordAccess(key, options);
495 } catch (error) {
496 log.debug("[MemoryService] failed to record memory usage", { scope, relPath, error });
497 }
498 }
499
500 private async recordRename(
501 ctx: MemoryScopeContext,

Callers 9

viewMethod · 0.95
createMethod · 0.95
strReplaceMethod · 0.95
insertMethod · 0.95
saveFileMethod · 0.95
finishChildReportFunction · 0.45
recordSessionUsageMethod · 0.45
streamMessageMethod · 0.45

Calls 3

logicalKeyForMethod · 0.95
recordAccessMethod · 0.80
debugMethod · 0.80

Tested by 1

finishChildReportFunction · 0.36