INNER CODE UNIT · Python

__enter__

Hekbas/Luth · luth/extern/source/tracy/python/tracy_client/scoped.py:42

    def __enter__(self):
        self.enter()
        return self

    def __exit__(self, *args):
        self.exit()


def ScopedZoneDecorator(
    name: Optional[str] = None,
    color: Color = 0,
    depth: Optional[int] = None,
    active: bool = True,
    class_name: Optional[str] = None,
):

    def decorator(function: Callable):
        if not is_enabled():

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…