Contenuto principale

deleteProfilerData

Delete profiler data from target computer

Description

deleteProfilerData(target_object,"-all") deletes execution profiler data for all of the real-time applications available on the Speedgoat® target computer. You cannot perform this operation while profiling service is running on the target computer.

For information about the availability of log data, see list.

deleteProfilerData(target_object,app_name) deletes the execution profiler data for the real-time application app_name on the target computer.

example

Examples

collapse all

Load the slrt_ex_osc application on the target computer and delete the profiler data 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);

Stop the profiler and stop the application.

stopProfiler(tg);
stop(tg);

Delete the slrt_ex_osc application profiler data.

deleteProfilerData(tg,"slrt_ex_osc");

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