Only flush visualizer output at the end of the compilation. am: 002eac6f81

Change-Id: I7514f0fa126f3beadac625c4c830581c109ebef0