Code Profiling Utilities Manual
Introduction to the Code Profiling Utilities
HP Code Profiling Utilities Manual—542684-003
1-2
Required Hardware and Software
Code Cover Utility (codecov) is used to generate the code coverage report; it runs
only on the Windows platform.
You can instrument all or part of any type of application; for instance:
•
OSS processes
•
Guardian processes
•
Active and passive process pairs
•
Mixed language processes
•
Processes with embedded NonStop SQL/MP or NonStop SQL/MX
Required Hardware and Software
The Code Profiling Utilities consist of two products:
•
T0746: Code Cover Utility (codecov) (required for code coverage only, and not for
profile-guided optimization)
•
T0747: Profile Merge Utility (profmrg) (required for code coverage and profile-
guided optimization)
and support for code-coverage instrumentation in H06.07 and later versions of the
following compilers:
•
T0356: COBOL compiler (ECOBOL)
•
T0549: TNS/E C/C++ compiler - for Guardian, Windows, and OSS (CCOMP,
CPPCOMP)
•
T8164: Standard C/C++ compiler utility - for OSS and Windows (c89, c99 (H06.21
and later versions and J06.10 and later versions))
•
T0561: pTAL compiler (EpTAL)
The codecov and profmrg products and compatible compilers are provided on the site
update tape (SUT). To use codecov, you must first install it on a Windows workstation.
You can install profmrg on either a Windows workstation or the NonStop server.
Installation is described in Section 2, Installing the Code Profiling Utilities.
Usage Overview
Profile-Guided Optimization
To optimize an application using profile-guided optimization:
1. Compile and link application components on the NonStop server or a workstation.
For parts of the application that you wish to instrument for profile-guided
optimization, use compiler options described in Section 3, Building the Application.










