User`s guide
Real-Time Execution Profiling
Real-Time Execution Profiling
In this section...
“Overview” on page 4-11
“Profiling Execution by Tasks” on page 4-12
“Profiling Execution By Subsystems” on page 4-14
Overview
Real-time execution profiling in Em bedded IDE Link CC sof twa r e uses a set
of utiliti es to support profi ling for synchronous and asynchronous tasks, or
atomic subs ystem s, in your generated code. These utilitie s record, upload, and
analyze the execution profile data.
Execution profiler supports profiling your code two ways:
• Tasks—Profi le your project according to the tasks in the code.
• Atomic subsystems—Profile your project according to the atomic
subsystems in your model.
Note To perform execution profiling, you mu st generate your project from a
model in Simulink modeling env ironment.
When you enable profiling, you select wh eth er to profile by task or subsystem.
To profile by subsystems, you must configure your mod el with a t least one
atomic subsyste m. To learn more about creating atomic subsystems, refer to
“Creating Subsystems” in the online help for Simulink software.
The profiler generates output in the following formats:
• Graphical d isplay that shows t ask or subsystem activation, preemption,
resumption, and completion. All data appears in a MATLAB graphic with
the data notated by model rates or subsystems and execution time.
4-11