Documentation

SimulinkRealTime.target.startProfiler

Start profiling service on target computer

Syntax

startProfiler(target_object)

Description

example

startProfiler(target_object) starts the profiler on the target computer. Its behavior depends on the value of ProfilerStatus.

If ProfilerStatus is Ready:

  • If a real-time application is running on the target computer, the profiler initializes and starts to collect data.

  • If an application is not running, the profiler initializes and waits. When an application starts running, the profiler starts to collect data.

If ProfilerStatus is DataAvailable:

  • If an application is running, calling this function returns an error. Download the data or reset the profiler before restarting it.

  • If an application is not running, calling this function restarts the profiler and prints a warning that the existing profile data is lost.

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

Examples

collapse all

Starts the profiler. The real-time application is already running.

tg = slrt;
start(tg);
startProfiler(tg);

Starts the profiler. Because the real-time application is not running, the profiler captures data from real-time application startup.

tg = slrt;
startProfiler(tg);
start(tg);

Input Arguments

collapse all

Object that represents the target computer. Before calling this function, make sure that you start the target computer with the Simulink® Real-Time™ kernel and apply the required Ethernet link settings.

Example: tg

Introduced in R2017b

Was this topic helpful?