I need to profile my C ++ application that starts with spawn-fcgi. I tried using callgrind, but the output of callgrind in KCachegrind does not show any information about my applications.
valgrind --tool=callgrind --dump-instr=yes --simulate-cache=yes --collect-jumps=yes --demangle=no --trace-children=yes --callgrind-out-file=%p spawn-fcgi -s /tmp/sock.tmp ./myApp arg1 arg2
This command creates two files 10012 and 10013, but the second file is empty. The first file contains overhead location information for spawn-fcgi, ld-2. *. So amd libc.
Please suggest the correct option for obtaining profiling information for my application.
source
share