This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Add tree rest of compilation timevar
On Dec 29, 2004, at 6:32 PM, Devang Patel wrote:
On Dec 29, 2004, at 12:39 PM, Daniel Berlin wrote:
Darwin is the only platform i've ever seen this happen on (timevars
take a significant amount of time).
:)
I've always found it humorous that they show up on my profiles. I
figure one of these days, the kernel people or libc (or whatever is
the cause of the performance problem) will learn to do whatever
everyone else is doing to not need 2-10% of the compilation time just
manipulating timers.
Someone has implemented faster time var operations for darwin. If
you're interested then search for "APPLE LOCAL" in timevar.* on
apple-ppc-branch.
Two someones, actually: Stan added some of it a few years ago, and did
some of it more recently. I added the stuff that uses PPC intrinsics
to avoid system calls. I haven't gotten around to contributing this to
FSF mainline because, as I said, I just haven't found -ftime-report all
that useful. Besides, even with ppc_intrinsic_time, I still see that
-ftime-report distorts the results.
--Matt