Re: [COMMITTERS] pgsql: Clean up the #include mess a little.

Поиск
Список
Период
Сортировка
От Ants Aasma
Тема Re: [COMMITTERS] pgsql: Clean up the #include mess a little.
Дата
Msg-id CA+CSw_swDoToduoEkt8GSi0dvMwDOYei--zATg_VrZedZpgZ1A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [COMMITTERS] pgsql: Clean up the #include mess a little.  (Greg Stark <stark@mit.edu>)
Ответы Re: [COMMITTERS] pgsql: Clean up the #include mess a little.
Список pgsql-hackers
On Mon, Sep 5, 2011 at 4:55 PM, Greg Stark <stark@mit.edu> wrote:
> What I wouldn't mind seeing is a graph of all includes and what they
> include. This might help figure out what layering violations there are
> like the one that caused this mess. I think I've seen tools to do this
> already somewhere.

I whipped together a quick Python script to do this. Attached is the
Python script (requires pydot) and the result of running it on includes/.
I didn't attach the png version of the output because it was 7MB.

If rendering all includes at once doesn't give a good overview it can
also select a subset through traversing dependencies. For example:
render_includes.py -i include/ \
  --select="storage/spin.h+*,access/xlog.h+*" output.png

This will render everything that directly or indirectly depends  on those
two headers. See --help for details.

--
Ants Aasma

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Couple document fixes
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Redundant bitmap index scans on smallint column