Download CodeWarrior™ Development Tools Profiler User Guide
Transcript
Freescale Semiconductor, Inc. Tr ou bl e s ho o ti n g Problems while Profiling Inline Functions Name Resolution Code Ticks ~16700 µs 68K and PPC Time Manager ~ 20 µs 68K and PPC Microseconds ~ 20 µs 68K and PPC Solution To solve this problem, increase the number of times your function is called, then the average the profiler computes will be more accurate. Sometimes it is helpful to pull a routine out of a program, and into a special test program which calls it many times in a loop for performance tuning purposes. However, this technique is susceptible to cache differences between the test and real program. Clock resonance If the operations you are performing in your profiled code coincide with the incrementing of the profiler clock, the results can be distorted, and could show wild variations. Solution One way to avoid this problem is to increase the number of times your function is called. Another way to avoid this problem is to increase the accuracy of the clock the profiler is using. You can only do this with the PowerPC profiler. The PowerPC profiler can use the RTC or TB registers of the PowerPC chip which have 128 ns or better resolution. Make a PowerPC version of your project and use bestTimeBase in your call to ProfilerInit(). Problems while Profiling Inline Functions Problem My inline functions are not getting inlined when I’m profiling my code. What’s happening? PFL–74 Profiler User Guide For More Information: www.freescale.com