Analyzing Program Performance With Sun WorkShop

Overriding the Default Definitions

To override the default, use the environment variables to change the profile bucket:

  1. Change the name of the profile bucket by using the SUN_PROFDATA environment variable.

  2. Change the directory where the profile-bucket is placed by using the SUN_PROFDATA_DIR environment variable.

The environment variables override the default location and name of the profile bucket. Both can be overridden independently. For example, if you only choose to set SUN_PROFDATA_DIR, the profile bucket will go into the directory where you set SUN_PROFDATA_DIR. The default name (which is the executable name followed by a ".profile") will still be the name used for the profile bucket.