MCPcopy Index your code
hub / github.com/DeepLabCut/DeepLabCut / build_debug_report

Function build_debug_report

deeplabcut/core/debug/debug_logger.py:482–503  ·  view source on GitHub ↗
(
    *,
    recorder: InMemoryDebugRecorder | None,
    libraries: Iterable[LibrarySpec | str] | None = None,
    executables: Iterable[ExecutableSpec | str] | None = None,
    include_module_paths: bool = False,
    include_executable_paths: bool = True,
    log_limit: int = 300,
)

Source from the content-addressed store, hash-verified

480
481
482def build_debug_report(
483 *,
484 recorder: InMemoryDebugRecorder | None,
485 libraries: Iterable[LibrarySpec | str] | None = None,
486 executables: Iterable[ExecutableSpec | str] | None = None,
487 include_module_paths: bool = False,
488 include_executable_paths: bool = True,
489 log_limit: int = 300,
490) -> str:
491 logs_text = recorder.render_text(limit=log_limit) if recorder is not None else "<debug recorder unavailable>"
492
493 sections = collect_debug_sections(
494 libraries=libraries,
495 executables=executables,
496 include_module_paths=include_module_paths,
497 include_executable_paths=include_executable_paths,
498 )
499
500 return format_debug_report(
501 sections=sections,
502 logs_text=logs_text,
503 )
504
505
506def collect_runtime_summary() -> dict[str, str]:

Calls 3

collect_debug_sectionsFunction · 0.85
format_debug_reportFunction · 0.85
render_textMethod · 0.80