coder.profile.test.hiliteCriticalPath - Highlight critical path in model canvas - MATLAB (original) (raw)

Main Content

Highlight critical path in model canvas

Since R2024a

Syntax

Description

coder.profile.test.hiliteCriticalPath = ([criticalPathBlocks](#mw%5Fced496ce-9a74-4618-b86d-84cba7808720)) highlights the critical path identified by coder.profile.test.analyzePath in the model canvas. You can also use Code Profile Analyzer app to highlight the path.

example

Examples

collapse all

Use coder.profile.test.hiliteCriticalPath to highlight the identified critical path in the model canvas programatically.

Open the CriticalPathIdentify model.

openExample('CriticalPathIdentify'); model = "CriticalPathIdentify";

Identify the critical path by using thecoder.profile.test.analyzePath function and store the results inmyResults.

myResults = coder.profile.test.analyzePath(model,SimMode="SIL")

Get a list of the blocks in the identified path.

criticalPathBlocks = coder.profile.test.getCriticalPathElements(myResults)

Highlight the identified path in the model canvas.

coder.profile.test.hiliteCriticalPath(criticalPathBlocks)

Input Arguments

Version History

Introduced in R2024a