Main Content

resetProfiler

Reset profiling service state to Ready

Since R2020b

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.

  1. openExample('slrealtime/SlrtExecutionProfilingForRealTimeApplicationsExample');
    tg = slrealtime('TargetPC1');
    open_system('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);
  2. resetProfiler(tg);

Input Arguments

collapse all

Provides access to methods that manipulate the target computer properties.

Example: tg

Version History

Introduced in R2020b