Main Content

resetProfiler

Reset profiling service state to Ready

Since R2020b

Description

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.

example

Examples

collapse all

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

  1. tg = slrealtime;
    mdlSTF = getSTFName(tg);
    mdlName = 'slrt_ex_mds_and_tasks';
    mdlNameSub1 = 'slrt_ex_mds_subsystem1';
    mdlNameSub2 = 'slrt_ex_mds_subsystem2';
    openExample(mdlName);
    open_system(mdlNameSub1);
    open_system(mdlNameSub2);
    set_param(mdlName,"SystemTargetFile",mdlSTF);
    set_param(mdlNameSub1,"SystemTargetFile",mdlSTF);
    set_param(mdlNameSub2,"SystemTargetFile",mdlSTF);
    slbuild(mdlName);
    load(tg,mdlName);
    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