Profiler User Guide

1 Introduction

Read the Release Notes!
What's New in This Release
CodeWarrior and Its Documentation
What's in This Manual
Where to Go from Here

2 Getting Started

System Requirements
Installing Profiler
Background on Profiling Code
What Is a Profiler?
Types of Profilers
A Profiling Strategy
Profiling Code

3 Using Profiler

What It Does
How It Works
Profiling Made Easy

4 Viewing Results

What It Does
How It Works
MW Profiler Window
Window Views
Finding Performance Problems

5 Profiling Mac OS Code

Profiler Libraries and Interface Files
Profiling Special Cases
Profiling Code with #pragma Statements
Initializing Profiler with ProfilerInit()
Terminating Profiler with ProfilerDump()
Profiling Threads
Viewing Threads in MW Profiler
Profiling Shared Libraries
Profiling Code Resources
Profiling C++ Static Constructors
Profiling MacApp
Profiling Asynchronous Routines
Profiling Abnormally Terminated Functions
Using the PowerPC PEF Linker
Debugging Profiled Code
Profiler Limitations

6 Profiling in PowerPlant

Introduction to Profiling in PowerPlant
Profiling Strategy
Rules of Thumb
Profiling Class
StProfileSection
~StProfileSection
Profiling Your Code
Code Exercise for Profiling
Profiling a Single Routine
Profiling an Application

7 Troubleshooting

Profile Times Vary Between Runs
Problems while Profiling Inline Functions
Profiling Library Could not be Found
Profiler and Virtual Memory
Names are Garbled when Viewing a 68K Profile Dump

8 Profiler Reference

Compiler Directives
Testing for the Profiler
Memory Usage
Time and Timebases
Profiler Menu Reference
About MW Profiler
File Menu
Edit Menu
View Menu
Windows Menu
Profiler Function Reference
Profiler API

Index



Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: July 21, 2000