PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
Loading...
Searching...
No Matches
python.pbatoolkit.py.profiling.Profiler Class Reference

Public Member Functions

 is_connected_to_server (self)
 
 wait_for_server_connection (self, timeout=10, retry=0.1)
 
 begin_frame (self, str frame_name)
 
 end_frame (self, str frame_name)
 
 profile (self, str zone_name, func)
 

Detailed Description

Interface to profiler used by Physics Based Animation Toolkit

Member Function Documentation

◆ profile()

python.pbatoolkit.py.profiling.Profiler.profile ( self,
str zone_name,
func )
Profile function evaluation of func

Args:
    zone_name (str): Tracy zone name to display in profiler
    func: Callable taking 0 arguments and returning tuples of matrices (numpy arrays)

Returns:
    The return value of a single call to func

The documentation for this class was generated from the following file: