On Thu, Feb 05, 2009 at 04:49:34PM -0800, Evan Martin wrote:
> 
> On Thu, Feb 5, 2009 at 4:35 PM, Lei Zhang <thes...@chromium.org> wrote:
> > I did the same with -MM and parsed the results. Assuming I did it
> > right, the average .cc file in src/chrome/ includes about 135 header
> > files. The files with the most number of includes:
> >
> > 440 about_chrome_view.o
> > 470 options_window_view.o
> > 481 history_ui.o
> > 483 user_data_dir_dialog.o
> > 544 dns_host_info_unittest.o
> > 601 aero_glass_non_client_view.o
> 
> What we really need is some sort of graph of includes, so we could
> find long chains.  From this list I don't know which headers are most
> at fault.

The raw output gives that sort of display

________Compiling Hammer/dbg/obj/chrome/app/chrome_exe_main_gtk.o
. /home/jamessan/src/chromium/src/base/at_exit.h
.. /usr/include/c++/4.3/stack
... /usr/include/c++/4.3/deque
.... /usr/include/c++/4.3/bits/stl_algobase.h
..... /usr/include/c++/4.3/i486-linux-gnu/bits/c++config.h
...... /usr/include/c++/4.3/i486-linux-gnu/bits/os_defines.h
....... /usr/include/features.h
........ /usr/include/sys/cdefs.h
......... /usr/include/bits/wordsize.h
........ /usr/include/gnu/stubs.h
......... /usr/include/bits/wordsize.h
......... /usr/include/gnu/stubs-32.h
...... /usr/include/c++/4.3/i486-linux-gnu/bits/cpu_defines.h
..... /usr/include/c++/4.3/cstddef
...... /usr/lib/gcc/i486-linux-gnu/4.3.2/include/stddef.h

so it shouldn't be too bad to generate such information.

-- 
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <vega.ja...@gmail.com>

--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to