Main Content

Enable Profiler

Start and stop execution profiler on target computer

Since R2020b

  • Enable Profiler block

Libraries:
Simulink Real-Time / Profiling

Description

The Enable Profiler block detects a rising edge on its Start input and starts the execution profiler on the Speedgoat® target computer. A rising edge on the Stop input stops the execution profiler. A rising edge on both ports has no effect.

Examples

Ports

Input

expand all

When the Start input changes from 0 to 1, the block starts the profiler.

After the resources required to collect the data become available in the background, the profiler starts collecting data. Profiler preparation can span several time steps.

Data Types: Boolean

When the Stop input changes from 0 to 1, the block stops the profiler.

If the profiler is still running when the application stops, the profiler stops by itself. You do not have to trigger the Stop input.

The amount of data collected is limited to 1GB. The profiler stops by itself when it reaches this limit.

Data Types: Boolean

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2020b