Skip to navigation

holoscan::format_diagnostic

Beta
View as Markdown
HOLOSCAN_CORE_EXPORT std::string holoscan::format_diagnostic(
const Diagnostic &diagnostic,
const ExecutionGraphView &graph
)

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

diagnostic
const Diagnostic &

Structured diagnostic to render.

graph
const ExecutionGraphView &

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.