• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Counting header includes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Counting header includes


  • Subject: Re: Counting header includes
  • From: Jeff Nordquist <email@hidden>
  • Date: Fri, 14 Mar 2008 08:31:11 -0500


On Mar 14, 2008, at 8:38 AM, Philip Aker wrote:

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.


Hi Philip,

Thanks for the response. I'm not sure where you're seeing this option - do you mean a CPP group in the project settings somewhere? Per-file settings? The closest setting I can see is "Scan All Source Files for Includes", which sounds promising until you read the description. :)

I'm in Xcode 3.0 in case that makes a difference...

Thanks,
Jeff


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
  • Follow-Ups:
    • Re: Counting header includes
      • From: Paul Sargent <email@hidden>
    • Re: Counting header includes
      • From: Jeff Nordquist <email@hidden>
References: 
 >Counting header includes (From: Jeff Nordquist <email@hidden>)
 >Re: Counting header includes (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: Counting header includes
  • Next by Date: Re: Counting header includes
  • Previous by thread: Re: Counting header includes
  • Next by thread: Re: Counting header includes
  • Index(es):
    • Date
    • Thread