The profiling code that keeps track of the time spent in a routine exists in a series of libraries. You need to add a profiler library and four profiler files to your project to use the profiler.
To add the profiler files:
- Select the Sources folder of your project in the CodeWarrior Projects view.
- Right-click and select the Add Files option.
The
Open
dialog box appears.
- Browse to the <CodeWarrior_Installation_Folder>\MCU\ColdFire_Support\Profiler\Support\ location.
- Select timer.c and timer_5485.c with Ctrl key pressed and click Open.
The
File and Folder Import
dialog box appears.
- Select the Copy the files and directories option and click OK.
The files are added to the
Sources folder.
Figure 1. Profiler Files Added to Sources Folder 
- Select the Project_Headers folder of your project in the CodeWarrior Projects view.
- Right-click and select the Add Files option.
The
Open
dialog box appears.
- Browse to the <CodeWarrior_Installation_Folder>\MCU\ColdFire_Support\Profiler\include\ location.
- Select Profiler.h and ProfilerTimer.h file with Ctrl key pressed and click Open.
The
File and Folder Import
dialog box appears.
- Select the Copy the files and directories option and click OK.
The files are added to the
Project_Headers folder.
To add the profiler library,
ProfileLibrary_CF_Runtime.a:
- Select your project in the CodeWarrior Projects view.
- Right-click and select the Properties option from the context menu.
The
Properties for <project name>
dialog box appears.
- Expand the C/C++ Build node in the tree structure on the left, and select the Settings option.
- In the Tool Settings tab page, expand the ColdFire Linker node in the left tree structure.
- Select the Input option.
- In the Library Files section on the right side of the tab page, click the Add.. button to open the Add file path dialog box.
- Click the File system button.
The
Open
dialog box appears.
- Browse to the <CodeWarrior_Installation_Folder>\MCU\ColdFire_Support\Profiler\Lib location.
- Select the ProfileLibrary_CF_Runtime.a file and click Open.
The complete path of the file appears in the
Add file path
dialog box.
Figure 2. Add File Path Dialog Box 
- Click OK in the Add file path dialog box.
The profiler library gets added to the
Library Files
section.
Figure 3. Tool Settings Page of Properties Dialog Box 