Embed Profiling Commands In Generated Code

This model shows the hooks provided by Simulink® Coder™ to profile generated code. In this model, the subsystems that perform averaging are profiled. Use the blue buttons in the model to generate and inspect code. The code contains profiling commands. To learn more about how profiler code was added for this example, look at the file rtwdemo_profile_hook.tlc.


Was this topic helpful?