Collecting performance data

To collect performance data for a C or C++ program, instrument and run your program:

  1. Compile and link the program under Quantify using the -g debugging option:
     

  2. % quantify cc -g hello_world.o
     

    or, if you compile and link at the same time:

    % purecov cc -g <myprog>.c
     

    Note that you can modify your existing test scripts and makefiles to compile and link your program under Quantify for automated testing. For more information click
     

  3. Run the instrumented program as you usually do:

  4. % a.out

    As you exercise your code, Quantify records data about its performance. When you exit your program, Quantify transmits the data to its data analysis program qv, displays a performance summary, and opens the Quantify Control Panel, which gives you access to Quantify's data analysis windows.

The next step in using Quantify is to analyze the performance data.

What else can you do?