holoscan::format_diagnostic
holoscan::format_diagnostic
Format one structural diagnostic for human-readable output.
Source vertex IDs are canonical plan IDs, so an authoring GraphView is not accepted. Related endpoint names prefer owned detail over compiled names. An owned primary port name matching its compiled name appears once; when both names are nonempty and differ, the owned name uses captured_port_name.
Preserve and inspect the structured fields when program logic depends on diagnostics. The rendered text is not a stable machine-readable format.
Returns: One human-readable line without a trailing newline.
Parameters
Structured diagnostic to render.
Immutable compiled graph from the diagnostic’s plan, used to resolve primary and related vertices and ports. A default-constructed view retains numeric identities and available owned names without graph lookup.