Stop profiling service on target computer
stopProfiler( 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.
When the profiler starts and stops, there is an increase in task execution time (TET) that can cause a CPU overload condition. If using profiler causes CPU overload, you can increase the sample time in order to use the profiler.
Start and Stop Profiler
Start the profiler, and then start the real-time application. After collecting execution profile data, stop the profiler.
tg = slrealtime('TargetPC1'); slbuild('slrt_ex_mds_and_tasks'); load(tg,'slrt_ex_mds_and_tasks'); 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);
Introduced in R2020b