Function Check is a profiler that recently appeared on unix platforms. When you are compiling software using GCC, you can use the -finstrument-functions option to enable profiling in the code generated by the compiler. At link time, you'll have to link with the Function Check library (libfnccheck.a). Please refer to the Function Check documentation for more information about compiling and linking.
Function Check currently works with gcc 2.95 and above only.
When you execute an application compiled with profiling turned on, a file named fnccheck.out is generated after execution. If a file with the same name already exists, it is overwritten. Please refer to the Function Check documentation for more information about this.
Once you have the fnccheck.out generated, you can start using KProf. If the file is in the same directory than the application, then you can directly open the application itself using KProf. The fnccheck.out file will be automatically detected and analyzed.
In the case the fnccheck.out file is in another directory, you must either move it to the application directory or manually execute the fncdump command to generated the text output that KProf needs, using this command:
% fncdump +calls -no-decoration -sfile fnccheck.out application-name > results-file.txt
Now you can open the text results file with KProf, making sure that you select Function Check as the file type at bottom of the Open File dialog.