Re: distcc and printing statistics

Martin Pool <[email protected]> Fri, 5 Aug 2011 17:50:55 +1000
Newsgroups gmane.comp.compilers.distcc
Message-ID <CAA9uavCW0M9zzC1QMLjkpme9u-6JnO0tppkG_swgHQQg2XqiYg@mail.gmail.com>
On 5 August 2011 17:47, Ɓukasz Tasz <[email protected]> wrote:
> Hi, thanks for your reply,
>
>> There is distcc-mon which you can poll to get some idea about where
>> distcc itself is spending its time.
>>
>
> I know about distccmon, but it's not enough for me,
>
> Distccmon is showing current state of ${DISTCC_DIR}/state files, and
> it is always possible that few files will be compiled during delay of
> getting the state - I loose information.
>
> From the other side I notticed, that in case of hudge objects, distcc
> mon is showing compilation, then slot is released, but in the fact
> distcc-server still has g++ job on it.
> On distcc mon it will be shown again when it it transmited back to
> client. I don't know if it is known bug or it is my host dependend.
> When I will have some time I will try to prepare testcase.
>
>> Tracking the preprocessing/compilation ratio would be interesting but
>> it's not implemented at present as far as I know.
>
> Do you have any ideas what would be the best place in the code to implement it?

I would probably do something like this: write a short machine
readable log file into ~/.distcc that says how long various phases of
compilation took, and perhaps the source file name, directory, and
similar operations, then you can have a separate command that
summarizes them.

Martin
__
distcc mailing list            http://distcc.samba.org/
To unsubscribe or change options:
https://lists.samba.org/mailman/listinfo/distcc