Developer Guide and Reference

Contents

Profile an Application with Instrumentation

Profiling an application includes the following three phases:
This topic provides detailed information on how to profile an application by providing sample commands for each of the three phases (or steps).
  1. Instrumentation compilation and linking
    Use
    [Q]prof-gen
    to produce an executable with instrumented information included. Use
    /Qcov-gen
    (Windows) option to obtain minimum instrumentation only for code coverage.
    Operating System
    Commands
    Linux and
    macOS*
    icpc -prof-gen -prof-dir/usr/profiled a1.cpp a2.cpp a3.cpp
    icpc a1.o a2.o a3.o
    Windows
    icl /Qprof-gen /Qprof-dirc:\profiled a1.cpp a2.cpp a3.cpp
    icl a1.obj a2.obj a3.obj
    Windows
    icl /Qcov-gen /Qcov-dirc:/cov_data a1.cpp a2.cpp a3.cpp