SetCostTracker sets the active CostTracker for this evaluation pass.
(tracker *CostTracker)
| 379 | |
| 380 | // SetCostTracker sets the active CostTracker for this evaluation pass. |
| 381 | func (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 | // |