MCPcopy Create free account
hub / github.com/InferCore/InferCore / ensureRecord

Method ensureRecord

internal/slo/memory_engine.go:184–191  ·  view source on GitHub ↗
(requestID string)

Source from the content-addressed store, hash-verified

182}
183
184func (e *MemoryEngine) ensureRecord(requestID string) *requestTiming {
185 rec, ok := e.records[requestID]
186 if !ok {
187 rec = &requestTiming{insertedAt: time.Now()}
188 e.records[requestID] = rec
189 }
190 return rec
191}
192
193func (e *MemoryEngine) evictLocked() {
194 now := time.Now()

Callers 4

RecordStartMethod · 0.95
RecordFirstTokenMethod · 0.95
RecordCompletionMethod · 0.95
RecordFallbackMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected