profiler¶
- class janim.render.profiler.RenderProfiler(callback: Callable[[FrameRecord], Any])¶
Bases:
objectPerformance Profiler
Used to patch item rendering and collect timing and performance statistics
- Parameters:
callback – Callback used to receive results, taking a
FrameRecordargument
- record_frame()¶
Use this function in a top-level rendering
withblock to measure the time spent on items in the inner code block and pass the result to thecallback