Main Content

stopProfiler

Stop profiling service on target computer

Description

example

stopProfiler(target_object) stops the profiler from running on the target computer.

If the profiler collected data, the data is available for download to the development computer.

If the profiler did not collect data, the profiler is ready to restart.

If you stop execution of the real-time application, the profiler stops.

Examples

collapse all

Start the profiler, and then start the real-time application. After collecting execution profile data, stop the profiler.

tg = slrealtime('TargetPC1');
slbuild('slrt_ex_ExecutionProfAndConc');
load(tg,'slrt_ex_ExecutionProfAndConc');
startProfiler(tg);

% start profiler before starting application

start(tg);

% let application run until its stop time
% or stop the profiler by calling stopProfiler

stopProfiler(tg);

At this point, call either the getProfilerData function or the resetProfiler function.

Input Arguments

collapse all

Provides access to methods that manipulate the target computer properties.

Example: tg

Introduced in R2020b