INNER CODE UNIT · Python

decorator

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

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

        source = function.__name__
        if class_name is not None:
            source = f"{class_name}:{source}"

        zone = _ScopedZone(
            name,
            int(color),
            depth,
            active,
            source,
            function.__code__.co_filename,
            function.__code__.co_firstlineno,
        )

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…