public class BuildRuleDurationTracker extends Object
Computation associated with build rules are broken into several phases. Those phases are
invoked from various places in CachingBuildEngine
at various times and on various
threads. In order to track the total duration of all of those phases combined we need some
central store, i.e. this class.
Constructor and Description |
---|
BuildRuleDurationTracker() |
Modifier and Type | Method and Description |
---|---|
ClockDuration |
doBeginning(BuildRule rule,
long wallMillisTime,
long nanoTime) |
ClockDuration |
doEnding(BuildRule rule,
long wallMillisTime,
long nanoTime,
long threadUserNanoDuration) |
void |
setDuration(BuildRule rule,
ClockDuration duration)
This method should only be used for testing.
|
public void setDuration(BuildRule rule, ClockDuration duration)
public ClockDuration doBeginning(BuildRule rule, long wallMillisTime, long nanoTime)
public ClockDuration doEnding(BuildRule rule, long wallMillisTime, long nanoTime, long threadUserNanoDuration)