Main Content

resetProfiler

Reset profiling service state to Ready

Description

example

resetProfiler(target_object) resets the profiling service state to Ready and deletes any data that the profiler has collected.

When you start a real-time application, the profiler resets itself.

Examples

collapse all

Start profiling execution, and then reset the profiler. The real-time application is already running.

tg = slrealtime('TargetPC1');
open_system(fullfile(matlabroot, 'toolbox', 'slrealtime', ...
    'examples', 'slrt_ex_mds_and_tasks'))
slbuild('slrt_ex_mds_and_tasks');
load(tg,'slrt_ex_mds_and_tasks');
startProfiler(tg);

% start profiler before starting application

start(tg);
resetProfiler(tg);

Input Arguments

collapse all

Provides access to methods that manipulate the target computer properties.

Example: tg

Introduced in R2020b