Top "Gprof" questions

gprof is a GNU tool used for code profiling.

Alternative to -pg with Clang?

I wish to profile CPU (sample if possible), with as small a performance impact as possible (hence similar to GCC's …

c gcc profiling clang gprof
How to install gprof on OS X

I'm trying to use gprof to profile a c++ application I've written but I can't figure out for the life …

c++ installation profiling gprof
Code compiled with profiling flag does not generate gmon.out

I compiled a code with gcc using the profiling flag (-pg), but when I run the program no gmon.out …

c++ c gcc profiling gprof
Compiling in g++ for gprof

I do not understand the documentation for gprof regarding how to compile your program for profiling with gprof. In g++, …

profiling g++ compilation gprof
gcc: undefined reference to _mcount (gprof instrumentation)

When compiling my c++ sources with the -pg option to inject gprof profile instrumentation code the compile fails with the …

gcc compiler-construction profiling solaris gprof
Why does the order of loops in a matrix multiply algorithm affect performance?

I am given two functions for finding the product of two matrices: void MultiplyMatrices_1(int **a, int **b, int **c, …

c algorithm matrix matrix-multiplication gprof
Confusing gprof output

I ran gprof on a C++ program that took 16.637s, according to time(), and I got this for the first …

c++ optimization profiling gprof
Problem with gprof on OS X: [program] is not of the host architecture

I'm having trouble running gprof on OS X. The file test.c is: #include <stdio.h> int main() { …

macos gcc gprof
`gprof` time spent in particular lines of code

I've been using the gprof profiler in conjunction with g++. I have a function in my code which encapsulates several …

c++ profiling gprof
Convert simple ascii table to CSV

I have gprof output shown below and I want to convert it to CSV format. What's the easiest way to …

bash unix csv gprof