Profiler

From Texas Instruments Embedded Processors Wiki

Jump to: navigation, search


  • Image:Google-16x16.png Search for an article here:


Contents

Profiler

Simulator profiler supports function profiling & code coverage along with simulator events in CCSv4.

'Note: target application must be built with minimal debug option turned on for profiling to work ([Project Properties]->Tool Settings->Basic Options->Debug model should be set to symdebug:skeletal or symdebug:dwarf). For RTSC project, use 'debug' configuration ... WHOLE_PROGRAM_DEBUG will not work.

Function Profiling

Function Profiling provides information on number of times functions called, inclusive & exclusive total cycle each functions took to execute and no. of simulator events happened within the functions.

Enable Function Profiling

  • Go to Menu Tools->Profile->Setup Profile Data Collection

Image:Profile_setup.jpg

  • Profile setup window will pop-up. Create a new profile configuration using create a new configuration icon on the right top corner of profile setup window. Select the Profile all Function on a Simulation Device for total cycle or Profile all Function on a Simulation Device for total CPU Cycles

Image:Profile_setup2.jpg

  • Select simulator events along with function profiling. Click on properties & select the appropriate events needed.
  • Function profiling support interrupt aware profiling, which will discount the cycles spent in interrupt routine. To enable click on the properties and click on Enable Interrupt Awareness

Image:Profile_setup3.jpg

  • Load the applications & run

Function Profiling Result

  • To view the function profiling result, goto Menu Tools->Profile->View Function Profile Results. Profile output window will pop-up.

Image:Profile_output.jpg

  • To view the simulator events across function profiling, click on the drop down menu, where cycle.CPU event show in the profile window.

Code Coverage

Code Coverage is supported on CCSv4 & CCSv3.3 as well. Check the wiki topic - link

Code Coverage is available on simulators only

Profile Control Points

Profile Control Points enable to collect Function Profiling/Code Coverage for a range or functions. Profile control point works similar to a breakpoint and can be set via Unified Breakpoint Manager (UBM).

  • Click on new breakpoint drop-down menu & select Profile Control Point

Image:Profile_control2.jpg

  • Profile Control point menu will pop-up. Need to specify the address & action. Actions are Pause Profiling , Resume Profiling & Terminate Profiling.
    • Pause Profiling - Pause collecting profile informations
    • Resume Profiling - Resume collecting profile informations
    • Terminate Profiling - Stops/Terminate collecting profile informations

Image:Profile_control1.jpg

Profiling with DSS

Function Profiling & Code Coverage can be done using DSS scripts. Check the wiki topic for more info - Profiling with DSS


For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article Profiler here.
Leave a Comment
Personal tools