MCPcopy Create free account
hub / github.com/cel-expr/cel-go / SetCostTracker

Method SetCostTracker

interpreter/frame.go:381–387  ·  view source on GitHub ↗

SetCostTracker sets the active CostTracker for this evaluation pass.

(tracker *CostTracker)

Source from the content-addressed store, hash-verified

379
380// SetCostTracker sets the active CostTracker for this evaluation pass.
381func (f *ExecutionFrame) SetCostTracker(tracker *CostTracker) {
382 if f.ctx == nil {
383 f.ctx = evalContextPool.Get().(*evalContext)
384 }
385 f.ctx.costs = tracker
386 f.costTracker = tracker
387}
388
389// ComputeResult tracks and computes the result of the given asynchronous function.
390//

Callers 1

ExecMethod · 0.80

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected