Analyzes profile data
gperf [-c] [-r] [-s] [-t threshold] a.out
gperf converts the output data produced by the group of osProfile functions along with symbol table information from a.out (or your executable's name) into a printed report detailing the relative time spent by the program in various functions. This data is obtained using pc-sampling which interrupts the program at regular intervals to record the value of the program counter.
The gperf tool can operate in a query mode (default), in which each execution sends a request to the program running on the development board for profile data. The profiled data is transferred back to the host and displayed by gperf. After displaying the data, gperf exits. gperf can also be run in a server mode (specify the -s option) in which it spins waiting for the program to execute the osProfileFlush function. gperf then displays the data and waits for the next osProfileFlush.
The gperf tool always displays the address of the function being displayed, the function name, and the percent of execution time used by the function. Example gperf output follows:
Profile Report for osprof Number of text symbols: 195 Sample period: 1000 microseconds Number of profiled segments: 2 Text segment 0, start = 80200050, size = 000000d4 Text segment 1, start = 80200470, size = 000031cc
80202088 osProfileStop.............................. 0.0616 % 80201720 osSetThreadPri............................. 0.1232 % Overflow ........................................... 99.8152 %
If you execute gperf without the -s option and the application calls the osProfileFlush function, the application will stop responding (hang).
1999/04/30 Changed Format