plot
Syntax
Description
plot(
generates a plot
from the profiler data. profiler_object
)
The Execution Profiler and the SLRT Overload Options block use different mechanisms to measure TET and do not generate identical TET values.
Examples
Run Profiler and Plot Profiler Data
The real-time application is already loaded. Start the profiler. Start the application.
tg = slrealtime('TargetPC1'); startProfiler(tg); start(tg);
Stop the profiler. Stop the application.
stopProfiler(tg); stop(tg);
Retrieve profiler data.
profiler_object = getProfilerData(tg);
Processing data, please wait ...
Call
plot
function on the data.plot(profiler_object);
Input Arguments
profiler_object
— Object that contains profiler result
structure
MATLAB® variable that you can use to access the result of the profiler execution.
You display the profiler data by calling the plot
and report
functions.
The structure has these fields:
TargetName
— Name of target computer in target computer settings.ModelInfo
— Information about model on which profiler ran:ModelName
— Name of real-time application.MATLABRelease
— MATLAB release under which model was built.
You can access the data in the profiler_object
variable. To
access the profiler data, before running the profiler, open the Configuration
Parameters dialog box. In the Real-Time tab, click
Hardware Settings. Select the Code Generation > Verification > Workspace variable option and set the value to executionProfile
.
Select the Save options option and set the value to
All data
. After running the profiler, use the technique
described for the Sections
(Embedded Coder) function.
Version History
Introduced in R2020b
Commande MATLAB
Vous avez cliqué sur un lien qui correspond à cette commande MATLAB :
Pour exécuter la commande, saisissez-la dans la fenêtre de commande de MATLAB. Les navigateurs web ne supportent pas les commandes MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)