[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: debugging parallel make

From: Eli Zaretskii
Subject: Re: debugging parallel make
Date: Sun, 06 Jan 2008 22:02:29 +0200

> From: Paul Smith <address@hidden>
> Date: Sun, 06 Jan 2008 10:17:49 -0500
> Cc: address@hidden
> On Sun, 2008-01-06 at 02:05 -0500, Dan McMahill wrote:
> > I'm looking for something along the lines of
> > 
> > [slot1] cc -c file1.c
> > [slot2] cc -c file2.c
> > [slot2] cc -c file3.c
> > [slot1] cc -c file4.c
> > 
> > where the [slot1] and [slot2] indicate which job slot is being fed a 
> > command.
> You can't, because make doesn't keep a list of slots like this.  You can
> read more details about how the jobserver works on my website below, but
> in short make reads a single character token from a pipe and when it
> gets one, that allows make to run a job.  All the tokens look exactly
> the same so there's no way for make to know which slot is being used.

How about an option to --debug that would cause Make to print the
current wallclock time each time it starts a process and each time a
process exits or is terminated?  That would give the OP enough
information to find out which processes run in parallel, won't it?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]