Hardware Profiler
R2026bProfiles function-call subsystem using GPIO, ERAD, or Timer measurement modes
Since R2024b
Libraries:
C2000 Microcontroller Blockset /
Scheduling
Description
The Hardware Profiler block enables you to profile a function-call subsystem on target hardware using General Purpose Input Output (GPIO), Embedded Real-time Analysis & Diagnostic (ERAD), and Timer measurement modes.
ERAD: Measure and analyze the execution times of start-to-end downstream function-call subsystems.
GPIO: Set and clear GPIO pins before and after the execution of downstream function-call subsystems.
Timer: Measure execution time of events by calculating the duration between pre-execution and post-execution timer counts.
Use these techniques to profile and optimize the performance of your code running on TI C2000 processors.
The Hardware Profiler block with Timer and ERAD mode provides output in clock cycles. To convert the output into seconds, use the following formula:

In ERAD measurement mode, the block reports the current cycle count of execution time.
Examples
Ports
Output
Parameters
Version History
Introduced in R2024b


