Add --trace-need

This commit is contained in:
Jakob Borg 2014-01-06 06:12:40 +01:00
parent c8a14d1c3d
commit ab8482a424
2 changed files with 4 additions and 0 deletions

View File

@ -40,6 +40,7 @@ type DebugOptions struct {
TraceFile bool `long:"trace-file"` TraceFile bool `long:"trace-file"`
TraceNet bool `long:"trace-net"` TraceNet bool `long:"trace-net"`
TraceIdx bool `long:"trace-idx"` TraceIdx bool `long:"trace-idx"`
TraceNeed bool `long:"trace-need"`
Profiler string `long:"profiler" value-name:"ADDR"` Profiler string `long:"profiler" value-name:"ADDR"`
} }

View File

@ -447,6 +447,9 @@ func (m *Model) recomputeNeed() {
// Don't have the file, so don't need to delete it // Don't have the file, so don't need to delete it
continue continue
} }
if opts.Debug.TraceNeed {
debugln("NEED:", ok, hf, f)
}
m.need[n] = true m.need[n] = true
} }
} }