profile Code Generation Option

Syntax: Default:
gen(profile[, yes])
gen(profile, no)
gen(profile, bsd)
gen(profile, no)

This option controls whether the code is enabled for profiling, or performance analysis.

By default, gen(profile) is set to no.

You must set gen(profile) to yes to run the Performance Analyzer.  The Performance Analyzer is included in VisualAge C++ as a technology preview.

To enable code for performance analysis on OS/2 and Windows NT platforms, link(debug, yes) must be set in addition to gen(profile).   You may also need to explicitly link with the object module that supports trace information in your executable target.   The performance analyzer object cpppan40.obj is linked automatically when you select gen(profile).

To use the Performance Analyzer for a C program on OS/2 and Windows NT platforms, you must set gen(debug, yes).

You must specify link(extDictionary, no) with gen(profile).

On AIX, specifying gen(profile, yes) generates profiling support code for use with the prof profiler.  Specifying gen(profile, bsd) generates profiling support code for BSD profiling using gprof.



Incremental C++ Build
C Compilation
Configuration Files


Build With Existing Object Files and Libraries
Set Build Options
Build


Code Generation Options
Code Generation Options