Main Content

socHardwareUsage

Generate processor core usage statistics from a recorded Simulation Data Inspector run

Since R2021b

Description

coreData = socHardwareUsage(modelname,runname) generates task timing data and duration statistics, including the core name, the average core usage (%) and the average usage, for each task. The function also can plot the average usage of each core.

coreData = socHardwareUsage(__,suppressPlot) suppress the automatic generation of usage plots.

Input Arguments

collapse all

Name of a Simulink model that is associated with a Simulation Data Inspector run, specified as a string scalar or character vector.

Data Types: char | string

Name of a Simulation Data Inspector run containing a task, specified as a string scalar or character vector.

Data Types: char | string

Suppress the automatic generation of hardware usage plots.

Data Types: char | string

Output Arguments

collapse all

Task timing data and duration statistics, returned as a structure.

Version History

Introduced in R2021b