Main Content

resetProfiler

Reset profiler on target computer

Description

resetProfiler(target_object) resets the profiler status to READY and deletes all the profiler has available on the target computer.

resetProfiler(target_object,app_name) resets the profiler status to READY and deletes the profiler data for the real-time application app_name. When you start a real-time application, the profiler resets itself.

example

Examples

collapse all

Load the slrt_ex_osc application on the target computer and reset the profiler for a specific application.

Open, build, and download the real-time application.

tg = slrealtime;
modelSTF = getSTFName(tg);
modelName = "slrt_ex_osc";
openExample(modelName);
set_param(modelName,"SystemTargetFile",modelSTF);
slbuild(modelName);
load(tg,modelName);

Start the profiler before starting the application.

startProfiler(tg);
start(tg);

Reset the profiler for the slrt_ex_osc application.

resetProfiler(tg,"slrt_ex_osc");

The profiler state resets to the READY state and the profiler data for the real-time application slrt_ex_osc is deleted.

Input Arguments

collapse all

Object that represents target computer, specified as a Target object. The object provides access to methods that manipulate the target computer properties.

Example: tg

Real-time application MLDATX file name that you build from the model, specified as a character vector or string scalar.

Example: "slrt_ex_osc"

Version History

Introduced in R2020b