MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / __init__

Method __init__

docling/utils/profiling.py:40–50  ·  view source on GitHub ↗
(
        self,
        conv_res: "ConversionResult",
        key: str,
        scope: ProfilingScope = ProfilingScope.PAGE,
    )

Source from the content-addressed store, hash-verified

38
39class TimeRecorder:
40 def __init__(
41 self,
42 conv_res: "ConversionResult",
43 key: str,
44 scope: ProfilingScope = ProfilingScope.PAGE,
45 ):
46 if settings.debug.profile_pipeline_timings:
47 if key not in conv_res.timings.keys():
48 conv_res.timings[key] = ProfilingItem(scope=scope)
49 self.conv_res = conv_res
50 self.key = key
51
52 def __enter__(self):
53 if settings.debug.profile_pipeline_timings:

Callers

nothing calls this directly

Calls 1

ProfilingItemClass · 0.70

Tested by

no test coverage detected