From ab8482a4240c96b9722b9903222524683ef4941a Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Mon, 6 Jan 2014 06:12:40 +0100 Subject: [PATCH] Add --trace-need --- main.go | 1 + model.go | 3 +++ 2 files changed, 4 insertions(+) diff --git a/main.go b/main.go index 807b3b148..ee429e4fc 100644 --- a/main.go +++ b/main.go @@ -40,6 +40,7 @@ type DebugOptions struct { TraceFile bool `long:"trace-file"` TraceNet bool `long:"trace-net"` TraceIdx bool `long:"trace-idx"` + TraceNeed bool `long:"trace-need"` Profiler string `long:"profiler" value-name:"ADDR"` } diff --git a/model.go b/model.go index 7b1998950..f403e8456 100644 --- a/model.go +++ b/model.go @@ -447,6 +447,9 @@ func (m *Model) recomputeNeed() { // Don't have the file, so don't need to delete it continue } + if opts.Debug.TraceNeed { + debugln("NEED:", ok, hf, f) + } m.need[n] = true } }