Lines Matching refs:cp
60 func (cp *criticalPath) StartAction(action *Action, counts Counts) {
61 start := cp.clock.Now()
62 if cp.start.IsZero() {
63 cp.start = start
65 cp.running[action] = start
68 func (cp *criticalPath) FinishAction(result ActionResult, counts Counts) {
69 if start, ok := cp.running[result.Action]; ok {
70 delete(cp.running, result.Action)
75 if x := cp.nodes[input]; x != nil {
82 end := cp.clock.Now()
98 cp.nodes[output] = node
101 cp.end = end
105 func (cp *criticalPath) Flush() {
106 criticalPath := cp.criticalPath()
111 cp.log.Verbosef("critical path took %s", criticalTime.String())
112 if !cp.start.IsZero() {
113 elapsedTime := cp.end.Sub(cp.start).Round(time.Second)
114 cp.log.Verbosef("elapsed time %s", elapsedTime.String())
116 cp.log.Verbosef("perfect parallelism ratio %d%%",
120 cp.log.Verbose("critical path:")
125 cp.log.Verbosef(" %2d:%02d %s",
131 func (cp *criticalPath) Message(level MsgLevel, msg string) {}
133 func (cp *criticalPath) Write(p []byte) (n int, err error) { return len(p), nil }
135 func (cp *criticalPath) criticalPath() []*node {
139 for _, node := range cp.nodes {