HP-UX Workload Manager User's Guide
Advanced WLM usage: Using performance metrics
Supplying data to WLM
Appendix H 507
(process the data)
arm_stop(process_data, status)
arm_start(report_data)
(generate report)
arm_stop(report_data, status)
arm_stop(total_time, status)
end loop
arm_end
To use ARM transaction data with WLM:
Step 1. Modify your program to use the ARM API calls described previously. To
use these calls, you must reference the include file
/opt/perf/include/arm.h.
Be sure to:
•Register ARM_app with ARM through the arm_init API call
• Mark the start and stop of each transaction in which you are
interested
Step 2. Compile your program, specifying the locations for the ARM header file
and library—being sure to link against the ARM library.
For HP-UX 11.0 and HP-UX 11i v1 (B.11.11), the compile/link line is:
% /opt/ansic/bin/cc -Ae prog.c -I /opt/perf/include -L
/opt/perf/lib -larm
The -Ae option ensures you compile using the extended ANSI mode.
For HP-UX 11i v2 (B.11.23) and HP-UX 11i v3 (B.11.31) on
IntelItanium-based platforms, the compile/link line for 32-bit IA
ARMed programs is:
% /opt/ansic/bin/cc -Ae prog.c -I /opt/perf/include \
-L /opt/perf/lib/hpux32 -larm
For HP-UX 11i v2 and HP-UX 11i v3 (B.11.31) on Itanium-based
platforms, the compile/link line for 64-bit IA ARMed programs is:
% /opt/ansic/bin/cc -Ae +DD64 prog.c -I /opt/perf/include \
-L /opt/perf/lib/hpux64 -larm