(
self,
conv_res: "ConversionResult",
key: str,
scope: ProfilingScope = ProfilingScope.PAGE,
)
| 38 | |
| 39 | class 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: |
nothing calls this directly
no test coverage detected