Re: Counting header includes
Re: Counting header includes
- Subject: Re: Counting header includes
- From: Philip Aker <email@hidden>
- Date: Fri, 14 Mar 2008 06:38:45 -0700
On 08-03-14, at 05:27, Jeff Nordquist wrote:
I'm looking for a way to count the number of times we try to include
headers during the course of a build. We have a legacy project with
roughly 1000 files and some gnarly interdependencies among the
headers. I bet some headers are being included far more often than
necessary. Of course we have everything wrapped in compile guards,
but a rearrangement of some of the code could ease build times
considerably.
The closest thing I've seen is in Visual Studio, where you can turn
on "Show Includes" for a project. In the past I've taken that
output, reformatted it and sorted it in Excel to see which headers
get used the most.
Is there an analogous setting in Xcode? Or perhaps, does someone
know of a clever macro I could put in a header (before the compile
guard) to generate a count during the build?
I think there's an option in cpp to list the headers. You'll have to
munge those outputs as well.
Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden