Re: Inlined functions



On Fri, 2005-10-21 at 23:54 -0700, Travis Reitter wrote:
> Is it safe to assume that pre-compiled packages for most distros are
> compiled with functions in-lined? Do any distros provide information
> about the compiler flags used for each package?

Isn't the default for most distros just -O2?  That doesn't have
inlining, as far as I remember.

> If I want to perform fine-grained profiling, should I just recompile the
> package I want to profile (and its dependencies) without in-lining? Are
> there any other build options I should keep in mind when recompiling
> packages to be profiled?

You'll get more useful call traces if you compile without inlining.  I
haven't been using any special options, and my profiles come out nice
and clean :)

  Federico




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]