end • AI Agents Framework
end: End tracking and record to the wrapper Profiler.
end
Method
</div>
This is a method of the StreamingTracker class in the profiler module.
End tracking and record to the wrapper Profiler.
Idempotent: safe to call explicitly inside a `with Profiler.streaming(...) block (whose finally also calls end()`); only the first invocation records a StreamingRecord.
Signature
def end(total_tokens: int) -> NoneParameters
ParamField
intNo description available.
Uses
time.perf_counterProfiler.record_streaming
Source
View on GitHubpraisonai/profiler.py at line 233