gprof command is not creating proper out.txt
First of all I'm running MacOSX 10.7.1. I've installed all properly, Xcode 4 and all the libraries, to work with C lenguage. I'm having troubles running gprof command in shell. I'll explain step by step what I'm doing and the output I'm receiving. Step 1: ~ roger$ cd Path/to/my/workspace ~ roger$ ls Output (Step 1): queue.c queue.h testqueue.c Step 2: ~ roger$ gcc -c -g -pg queue.c ~ roger$ ls Output (Step 2): queue.c queue.h queue.o testqueue.c Step 3: ~ roger$ gcc -o testqueue -g -pg queue.o testqueue.c ~ roger$ ls Output (Step 3): queue.c queue.h queue.o testqueue testqueue.c Step 4: ~