gprof command line arguments to profiled program?

Andreas Schwab
Thu Nov 16 11:16:00 GMT 2006

"Stefan Berglund" <> writes:

> From what I have read, gprof should support sending arguments to the
> profiled program?

gprof does not run the program, it analyzes the profile output (gmon.out).

> But I can't see how it's done from looking in the code (I'm no expert at
> all though).

How about reading the documentation instead?


Andreas Schwab, SuSE Labs,
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

More information about the Binutils mailing list