Reimplement --trace tsp using env.log.

Change-Id: Ic98d7f5cc13e91a094f3eff27ce261ad36382c09
Merge "Reimplement --trace tsp using env.log."