Start profiling service on target computer



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 this operation discards the existing profile data from the target computer.

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


collapse all

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

tg = slrt;

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

tg = slrt;

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