deirokay.statements.multibackend.profile
- deirokay.statements.multibackend.profile(backend: Backend, *, force: bool = False) Callable[[Callable[[...], Any]], Callable[[...], Any]][source]
Define a decorator that turns any method into an alias for the profile method when executed using a given backend.
- Parameters
backend (Backend) – The backend for the decorated method.
- Returns
GeneralDecorator – A decorator for the alias method of profile.
force (bool, optional) – Force overwrite target method when it already exists. Defaults to False.