gpuguy
gpuguy

Reputation: 4585

How to compare several Gprof profiler reports?

In multiple run of my C program with different parameter values, I get multiple profiling report files. This is too difficult to read and compare.

Is there a way I can get a comparison file, preferably with graphs to show , how the performance increased or decreased as the size (the parameter that i am passing at the run time ) is increased.

Upvotes: 0

Views: 256

Answers (1)

kerolasa
kerolasa

Reputation: 411

Try perf(1) tool.

perf record ./yourbinary
perf record ./yourbinary-v2
perf diff

Having compiler options "-O0 -g -ggdb" around when making binaries is will often help when trying to understand why this vs that version have performance difference.

Upvotes: 1

Related Questions