Download CodeWarrior™ Development Tools Profiler User Guide

Transcript
Vi e w i ng R es u l ts
Window Views
Figure 4.4
Freescale Semiconductor, Inc.
Detailed view
Routines that are called by a given routine are shown indented
under that routine. This means that a routine may appear more than
once in the profile if it called from different routines. This makes it
difficult to tell how much total time was spent in a routine.
However, you can use the summary view for that purpose.
The detailed view is useful for detecting design problems in code.
MW Profiler in detailed view lets you see what routines are called
how often from what other routines. Armed with knowledge of
your code’s underlying design, you may discover flow-control
problems.
For example, you can use detailed view to discover routines that are
called from only one place in your code. You might decide to fold
that routine’s code into the caller, thereby eliminating the routine
call overhead entirely. If it turns out that the little routine is called
thousands of times, you can gain a significant performance boost.
You can use the Expand All or Collapse All commands in the View
menu to open or close the entire hierarchy at once.
In detailed view, sorting is limited to routines at the same level in
the hierarchy. For example, if you sort by routine name, the routines
at the top of the hierarchy will be sorted alphabetically. For each of
those first-level routines, its second-level routines will be sorted
alphabetically underneath it, and so on.
PFL–34
Profiler User Guide
For More Information: www.freescale.com