Class StepProgress
source code
I keep track of how much progress a single BuildStep has made.
Progress is measured along various axes. Time consumed is one that is
available for all steps. Amount of command output is another, and may be
better quantified by scanning the output for markers to derive number of
files compiled, directories walked, tests run, etc.
I am created when the build begins, and given to a BuildProgress
object so it can track the overall progress of the whole build.
|
|
|
|
|
|
|
|
|
|
|
setProgress(self,
metric,
value)
The step calls this as progress is made along various axes. |
source code
|
|
|
finish(self)
This stops the 'time' metric and marks the step as finished overall. |
source code
|
|
|
|
|
|
|
startTime = None
|
|
stopTime = None
|
|
expectedTime = None
|
|
buildProgress = None
|
|
debug = False
|
The step can call this to explicitly set a target value for one of its
metrics. E.g., ShellCommands knows how many commands it will execute, so
it could set the 'commands' expectation.
|
This stops the 'time' metric and marks the step as finished overall.
It should be called after the last .setProgress has been done for each
axis.
|